Пример #1
0
    def testGetDateValuesWithEpoch(self):
        """Tests the _GetDateValuesWithEpoch function."""
        date_time_epoch = interface.DateTimeEpoch(2000, 1, 1)
        date_time_values = interface.DateTimeValues()

        year, month, day_of_month = date_time_values._GetDateValuesWithEpoch(
            0, date_time_epoch)
        self.assertEqual(year, 2000)
        self.assertEqual(month, 1)
        self.assertEqual(day_of_month, 1)
Пример #2
0
 def testInitialize(self):
     """Tests the __init__ function."""
     date_time_epoch = interface.DateTimeEpoch(1970, 1, 1)
     self.assertIsNotNone(date_time_epoch)