def test_timespan_negative(): with pytest.raises(ValueError): _ = render.timespan(seconds=-1.)
def test_timespan(seconds, output): assert output == render.timespan(seconds=seconds)
def test_timespan_negative(): with pytest.raises(ValueError): _ = render.timespan(seconds=-1.)
def test_timespan(seconds, output): assert output == render.timespan(seconds=seconds)