def test_can_calculate_time_distance_for_half_hour(self): t1 = Time(7) t2 = Time(7, 30) self.assertEquals(t1.distance_to(t2), Hours(0, 30))
def test_can_calculate_time_distance(self): t1 = Time(7) t2 = Time(8) self.assertEquals(t1.distance_to(t2), Hours(1))