def test_if_true(self): obj = Vehicle("11:30:30", None, "abcd", "ABCD123456") result = obj.vehicle() self.assertEqual(result, "true")
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")
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")
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")
def test_entry_time(self): obj = Vehicle(None, None, "abcd", "ABCD123456") result = obj.vehicle() self.assertEqual(result, "entry time cannot be None")