def test_microseconds_since_1601_to_datetime(self):
     microsec_since_1601 = _datetime_to_microseconds_since_1601(DT_VALID)
     dt = osxcollector._value_to_datetime(microsec_since_1601)
     T.assert_equal(dt, DT_VALID)
 def test_seconds_since_2001_to_datetime(self):
     sec_since_2001 = _datetime_to_seconds_since_2001(DT_VALID)
     dt = osxcollector._value_to_datetime(sec_since_2001)
     T.assert_equal(dt, DT_VALID)
 def test_seconds_since_epoch_to_datetime(self):
     sec_since_epoch = _datetime_to_seconds_since_epoch(DT_VALID)
     dt = osxcollector._value_to_datetime(sec_since_epoch)
     T.assert_equal(dt, DT_VALID)
 def test_microseconds_since_1601_to_datetime(self):
     microsec_since_1601 = _datetime_to_microseconds_since_1601(DT_VALID)
     dt = osxcollector._value_to_datetime(microsec_since_1601)
     T.assert_equal(dt, DT_VALID)
 def test_seconds_since_epoch_to_datetime(self):
     sec_since_epoch = _datetime_to_seconds_since_epoch(DT_VALID)
     dt = osxcollector._value_to_datetime(sec_since_epoch)
     T.assert_equal(dt, DT_VALID)
 def test_seconds_since_2001_to_datetime(self):
     sec_since_2001 = _datetime_to_seconds_since_2001(DT_VALID)
     dt = osxcollector._value_to_datetime(sec_since_2001)
     T.assert_equal(dt, DT_VALID)
Beispiel #7
0
 def test_microseconds_since_epoch_to_datetime(self):
     microsec_since_epoch = _datetime_to_microseconds_since_epoch(DT_VALID)
     dt = osxcollector._value_to_datetime(microsec_since_epoch)
     assert dt == DT_VALID
Beispiel #8
0
 def test_seconds_since_2001_to_datetime(self):
     sec_since_2001 = _datetime_to_seconds_since_2001(DT_VALID)
     dt = osxcollector._value_to_datetime(sec_since_2001)
     assert dt == DT_VALID