示例#1
0
文件: TimeTest.py 项目: remar/bfiller
 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
文件: TimeTest.py 项目: remar/bfiller
 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))