def test_datetime_fromdatetime(dt, expected):
    assert Zulu.fromdatetime(dt) == expected
Beispiel #2
0
def test_zulu_fold(dt, timezone, expected_fold):
    zoned = dt.astimezone(timezone)
    assert zoned.fold == expected_fold
    assert dt == Zulu.fromdatetime(zoned)
Beispiel #3
0
def test_zulu_fold(dt, timezone, expected_fold):
    zoned = dt.astimezone(timezone)
    assert zoned.fold == expected_fold
    assert dt == Zulu.fromdatetime(zoned)
Beispiel #4
0
def test_zulu_fromdatetime(dt, expected):
    assert Zulu.fromdatetime(dt) == expected