コード例 #1
0
    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()
コード例 #2
0
    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))