Exemple #1
0
 def test_is_not_too_old(self):
     # NOTE: Technically, this test could fail if the test is run
     # at the moment that the day changes in Zulu
     test_db = subject.db_create()
     self.assertFalse(subject.too_old(test_db))
Exemple #2
0
 def test_create(self):
     result = subject.db_create()
     self.assertEqual({}, result['bugs'])
     self.assertEqual(time.struct_time, type(result['created']))
     self.assertEqual(['bugs', 'created'], result.keys())