Example #1
0
def test_format_partially_defined_durations(delta, expected):
    expect(format_delta(delta)) == expected
Example #2
0
def test_format_zero_duration():
    expect(format_delta(timedelta())) == ''
Example #3
0
def test_format_durations_with_days(delta, expected):
    expect(format_delta(delta)) == expected
Example #4
0
def test_format_duration(delta, expected):
    expect(format_delta(delta)) == expected
Example #5
0
def test_format_partially_defined_durations(delta, expected):
    expect(format_delta(delta)) == expected
Example #6
0
def test_format_durations_with_days(delta, expected):
    expect(format_delta(delta)) == expected
Example #7
0
def test_format_zero_duration():
    expect(format_delta(timedelta())) == ''
Example #8
0
def test_format_duration(delta, expected):
    expect(format_delta(delta)) == expected