def test_load_insurers(self): self.assertEqual(load.insurers(), len(YEARS)) self.assertEqual(load.insurers(), 0) self.assertEqual(load.insurers(update=True), len(YEARS)) self.assertEqual(load.insurers(year=1999), 0) config.session.commit()
def test_teardown(self): # test if the teardown mechanism of this class work # by re-running the first part of test_load_insurers self.assertEqual(load.insurers(), len(YEARS))