示例#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))
示例#2
0
 def test_is_too_old(self):
     test_db = {
         'created': old_time
     }
     self.assertTrue(subject.too_old(test_db))