def test_rounding_value(): eq_(round_timefile(eight), eight) eq_(round_timefile(eight + minutes(20)), eight)
def test_rounding_similarity(): eq_(round_timefile(eight), round_timefile(eight+minutes(20))) assert round_timefile(eight) != round_timefile(nine)