def testTimestampFromTicks(self): if self.HAS_TZSET: val = pg8000.TimestampFromTicks(1173804319) self.assertEqual(val, datetime.datetime(2007, 3, 13, 16, 45, 19))
def test_timestamp_from_ticks(has_tzset): if has_tzset: val = pg8000.TimestampFromTicks(1173804319) assert val == datetime.datetime(2007, 3, 13, 16, 45, 19)
def testTimestampFromTicks(self): if IS_JYTHON: return val = pg8000.TimestampFromTicks(1173804319) self.assertEqual(val, datetime.datetime(2007, 3, 13, 16, 45, 19))