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