Example #1
0
def test_Time_default():
    dt = DateTime()
    tt = Time()
    tt.to_string()
    assert tt.hour == dt.hour
    assert tt.minute == dt.minute
    assert tt.second == dt.second
    assert tt.microsecond == dt.microsecond
Example #2
0
def test_Time_as_time():
    tt = Time()
    assert isinstance(tt.as_time(), datetime.time)
    assert not isinstance(tt.as_time(), Time)