Ejemplo n.º 1
0
class TestArchitect(unittest.TestCase):
    def setUp(self):
        self.arc = Architect('testWorker')

    def test_00_start_stop(self):
        def runner():
            pass

        self.arc.start(runner, ())
        self.arc.stop()

    def test_01_start_kill(self):
        def runner():
            while True:
                pass

        self.arc.start(runner, ())
        self.arc.kill()
Ejemplo n.º 2
0
class TestArchitect(unittest.TestCase):
    def setUp(self):
        self.arc = Architect('testWorker')

    def test_00_start_stop(self):
        def runner():
            pass

        self.arc.start(runner, ())
        self.arc.stop()

    def test_01_start_kill(self):
        def runner():
            while True:
                pass

        self.arc.start(runner, ())
        self.arc.kill()
Ejemplo n.º 3
0
 def setUp(self):
     self.arc = Architect('testWorker')
Ejemplo n.º 4
0
 def setUp(self):
     self.arc = Architect('testWorker')