def test_formatter4(self): """ Test the format_ride_time() filter used by the templates. """ start, end = self.one_day() x = RiderTimeDelta(start, end, dnf=True) self.assertEqual(format_ride_time(x, show_special=True), "DNF")
def test_formatter1(self): """ Test the format_ride_time() filter used by the templates. """ start, end = self.one_day() x = RiderTimeDelta(start, end) self.assertEqual(format_ride_time(x), "24:00")