def test_format_partially_defined_durations(delta, expected): expect(format_delta(delta)) == expected
def test_format_zero_duration(): expect(format_delta(timedelta())) == ''
def test_format_durations_with_days(delta, expected): expect(format_delta(delta)) == expected
def test_format_duration(delta, expected): expect(format_delta(delta)) == expected