def test_timestamp(): val = pg8000.Timestamp(2001, 2, 3, 4, 5, 6) assert val == datetime.datetime(2001, 2, 3, 4, 5, 6)
def testTimestamp(self): val = pg8000.Timestamp(2001, 2, 3, 4, 5, 6) self.assertEqual(val, datetime.datetime(2001, 2, 3, 4, 5, 6))