Пример #1
0
 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))
Пример #2
0
 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))
Пример #3
0
 def test_can_calculate_time_distance(self):
     t1 = Time(7)
     t2 = Time(8)
     self.assertEquals(t1.distance_to(t2), Hours(1))
Пример #4
0
 def test_can_calculate_time_distance(self):
     t1 = Time(7)
     t2 = Time(8)
     self.assertEquals(t1.distance_to(t2), Hours(1))