Exemplo n.º 1
0
def test_str_is_like_a_epoch_timestamp():
    mark = int(time.time())
    edt = EpochDateTime.now()
    result = edt.__str__()
    assert result >= mark
    assert '.' not in result
Exemplo n.º 2
0
def test_str_is_like_a_epoch_timestamp():
    mark = int(time.time())
    edt = EpochDateTime.now()
    result = edt.__str__()
    assert result >= mark
    assert "." not in result
Exemplo n.º 3
0
def test_strftime_still_works():
    assert datetime.datetime.now().strftime('%Y-%m-%d') == \
        EpochDateTime.now().strftime('%Y-%m-%d')
Exemplo n.º 4
0
def test_strftime_still_works():
    assert datetime.datetime.now().strftime("%Y-%m-%d") == EpochDateTime.now().strftime("%Y-%m-%d")