def test_dates(self):
     # Test if created, modified, effective etc. are set correctly
     self.assertEqual(catalog.created(self.comment)(),
                       DateTime(2006, 9, 17, 14, 18, 12, 'GMT'))
     self.assertEqual(catalog.effective(self.comment)(),
                       DateTime(2006, 9, 17, 14, 18, 12, 'GMT'))
     self.assertEqual(catalog.modified(self.comment)(),
                       DateTime(2008, 3, 12, 7, 32, 52, 'GMT'))
Beispiel #2
0
 def test_dates(self):
     # Test if created, modified, effective etc. are set correctly
     self.assertEqual(
         catalog.created(self.comment)(),
         DateTime(2006, 9, 17, 14, 18, 12, 'GMT'))
     self.assertEqual(
         catalog.effective(self.comment)(),
         DateTime(2006, 9, 17, 14, 18, 12, 'GMT'))
     self.assertEqual(
         catalog.modified(self.comment)(),
         DateTime(2008, 3, 12, 7, 32, 52, 'GMT'))