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