Example #1
0
def test_TimeDelta_total_seconds(tds0):
    string, total_seconds = tds0
    td = TimeDelta(string)
    print(string, td)
    assert td.total_seconds() == total_seconds
Example #2
0
def test_TimeDelta_string(tdsp):
    string, total_seconds = tdsp
    td = TimeDelta(string)
    print(string, td)
    assert td.total_seconds() == total_seconds
    assert td.to_string() == string
Example #3
0
def test_TimeDelta_default():
    td = TimeDelta()
    td.to_string()
    assert td.total_seconds() == 0.0