def test_monetdbeDate(self): d = monetdbe.Date(2004, 2, 14) self.cur.execute("insert into test(d) values (?)", (d, )) self.cur.execute("select d from test") d2 = self.cur.fetchone()[0] self.assertEqual(d, d2)
def test_Date(self): d = monetdbe.Date(2004, 10, 28)