def test_swim_pace_illegal_value(self): with pytest.raises(AssertionError): filters.swim_pace(1)
def test_swim_pace_value_too_large(self): with pytest.raises(AssertionError): filters.swim_pace(timedelta(seconds=999))
def test_swim_pace(self): assert filters.swim_pace( timedelta(seconds=12.3456)) == "20:34.56 min / 100 m"