Exemplo n.º 1
0
def test_DateTime_default():
    dt = DateTime()
    dt.to_string()

    dt = DateTime(2008, 6, 13, 1, 0, 14, 400)
    dt.to_string()
    assert str(dt) == "DateTime('2008-06-13 01:00:14.000400')"
Exemplo n.º 2
0
def test_DateTime_init_kw():
    dt = DateTime(year=2008, month=6, day=13, hour=1, minute=0, second=14, microsecond=400)
    dt.to_string()
    assert str(dt) == "DateTime('2008-06-13 01:00:14.000400')"