Esempio n. 1
0
 def test_if_true(self):
     obj = Vehicle("11:30:30", None, "abcd", "ABCD123456")
     result = obj.vehicle()
     self.assertEqual(result, "true")
Esempio n. 2
0
 def test_car_plate_number_if_not_valid(self):
     obj = Vehicle("11:30:30", None, "abcd", "Ab1234")
     result = obj.vehicle()
     self.assertEqual(result, "enter a valid car plate number")
Esempio n. 3
0
 def test_driver_name_if_number(self):
     obj = Vehicle("11:30:30", None, "1234", "ABCD123456")
     result = obj.vehicle()
     self.assertEqual(result, "driver name cannot be a number")
Esempio n. 4
0
 def test_car_plate_number_if_none(self):
     obj = Vehicle("11:30:30", None, "abcd", None)
     result = obj.vehicle()
     self.assertEqual(result, "car plate number cannot be None")
Esempio n. 5
0
 def test_entry_time(self):
     obj = Vehicle(None, None, "abcd", "ABCD123456")
     result = obj.vehicle()
     self.assertEqual(result, "entry time cannot be None")