def setUp(self): self.engine = Engine()
def main(): """Call the engine to run the software.""" engine = Engine() engine.launch()
def setUp(self): self.engine = Engine() self.motorbike = Motorbike("Yamaha", "FZR1000", self.engine)
class TestEngine(unittest.TestCase): def setUp(self): self.engine = Engine() def test_engine_can_start(self): self.assertEqual("Vrrrmmm!", self.engine.start())
"""Program launch module""" from classes.engine import Engine if __name__ == "__main__": Engine()
# coding: utf-8 from classes.engine import Engine e = Engine()
from classes.engine import Engine if __name__ == "__main__": # Boucle du jeu engine = Engine() engine.run()
from classes.engine import Engine from datas.words import WORDS e = Engine(WORDS)
def setUp(self): self.engine = Engine() self.gearbox = Gearbox("manual", 5) self.car = Car("Ford", "Escort", self.engine, self.gearbox)