Esempio n. 1
0
 def test_day_21_30__06_30(self):
     in_time, out_time = self.get_time_range('2015-05-09 21:30:00', '2015-05-10 06:30:00')
     result = rule.park_charge_daytime(rule.CarType.BLUE, in_time, out_time)
     self.assertEqual(result, 5.0)
Esempio n. 2
0
 def test_day_19_00__19_30(self):
     in_time, out_time = self.get_time_range('2015-05-09 19:00:00', '2015-05-09 19:30:00')
     result = rule.park_charge_daytime(rule.CarType.BLUE, in_time, out_time)
     self.assertEqual(result, 2.0)