Пример #1
0
 def get_engine(self):
     engineAmount = Engine.does_vehicle_have_engine(self.p)
     if engineAmount > 0:
         print("Since this is a " + self.p + ", it contains an engine")
     else:
         print("Since this is a " + self.p +
               ", it does not contain an engine")
Пример #2
0
 def test_does_vehicle_have_engine(self):
     print("have_engine test. ")
     test = Engine()
     car = "car"
     if self.assertEqual(test.does_vehicle_have_engine(car), 1):
         return