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
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
def test_strftime_still_works(): assert datetime.datetime.now().strftime('%Y-%m-%d') == \ EpochDateTime.now().strftime('%Y-%m-%d')
def test_strftime_still_works(): assert datetime.datetime.now().strftime("%Y-%m-%d") == EpochDateTime.now().strftime("%Y-%m-%d")