Beispiel #1
0
    def setUp(self):
        def runner():
            pass

        self.runner = runner
        self.arc = EngineArchitect('Engine')
Beispiel #2
0
    def setUp(self):
        def runner():
            pass

        self.runner = runner
        self.arc = EngineArchitect('Engine')
Beispiel #3
0
class TestEngineArchitect(unittest.TestCase):
    def setUp(self):
        def runner():
            pass

        self.runner = runner
        self.arc = EngineArchitect('Engine')

    def test_00_start_stop(self):
        self.arc.init()
        self.arc.start(self.runner, ())
        self.arc.stop()

    def test_01_start_kill(self):
        self.arc.init()
        self.arc.start(self.runner, ())
        self.arc.kill()

    def test_02_getEmitter(self):
        self.arc.init()
        emitter = self.arc.getLeftEmitter()
        self.assertIsInstance(emitter, Emitter)
        emitter = self.arc.getRightEmitter()
        self.assertIsInstance(emitter, Emitter)
Beispiel #4
0
class TestEngineArchitect(unittest.TestCase):
    def setUp(self):
        def runner():
            pass

        self.runner = runner
        self.arc = EngineArchitect('Engine')

    def test_00_start_stop(self):
        self.arc.init()
        self.arc.start(self.runner, ())
        self.arc.stop()

    def test_01_start_kill(self):
        self.arc.init()
        self.arc.start(self.runner, ())
        self.arc.kill()

    def test_02_getEmitter(self):
        self.arc.init()
        emitter = self.arc.getLeftEmitter()
        self.assertIsInstance(emitter, Emitter)
        emitter = self.arc.getRightEmitter()
        self.assertIsInstance(emitter, Emitter)