#!/usr/bin/env python


import os

from juriscraper.pacer import CaseQueryAdvancedBankruptcy
from tests import TESTS_ROOT_EXAMPLES_PACER
from tests.local.PacerParseTestCase import PacerParseTestCase


class PacerParseCaseQueryAdvancedBankruptcyTest(PacerParseTestCase):
    """Tests for the CaseQuery Bankruptcy Advanced results."""

    def setUp(self):
        self.maxDiff = 200000

    def test_parsing_case_query_results(self):
        path_root = os.path.join(
            TESTS_ROOT_EXAMPLES_PACER, "case_queries_advanced"
        )
        self.parse_files(path_root, "*.html", CaseQueryAdvancedBankruptcy)
