def test_car_type(self): gallardo = Vehicle('gallardo', 'spider', 'saloon') self.assertTrue(gallardo.is_saloon(), msg='The type should be a saloon')
def test_for_invalid_obj(self): scania = Vehicle('scania', 'v7', 'truck') self.assertTrue(scania.is_saloon(), msg="The type should be a saloon")