Beispiel #1
0
class TestWithDownload:
    def setUp(self):
        self.filing = Filing(FILING_2015V21)
        if os.path.isfile(self.filing.get_filepath()):
            if DOWNLOAD:
                os.remove(self.filing.get_filepath())

    def test_case_1(self):
        self.filing.process()
        assert self.filing.get_version() == '2015v2.1'

    def test_case_2(self):
        self.filing.process()
        f_skeds = self.filing.list_schedules()
        assert f_skeds == FILING_2015V21_skeds
        for f_sked in f_skeds:
            self.filing.get_schedule(f_sked)
Beispiel #2
0
def test_process_with_filepath():
    filename = "%s_public.xml" % FILING_2015V21
    filepath = os.path.join(WORKING_DIRECTORY, filename)
    a = Filing(FILING_2015V21, filepath=filepath)
    a.process()
    assert a.get_version() == '2015v2.1'
Beispiel #3
0
def test_process_from_id_only_2():
    a = Filing(FILING_2014V50)
    a.process()
    assert a.get_version() == '2014v5.0'
Beispiel #4
0
def test_process_from_id_only():
    a = Filing(FILING_2015V21)
    a.process()
    assert a.get_version() == '2015v2.1'
Beispiel #5
0
 def setUp(self):
     self.filing = Filing(FILING_2015V21)
     if os.path.isfile(self.filing.get_filepath()):
         if DOWNLOAD:
             os.remove(self.filing.get_filepath())