Example #1
0
class ListenerTests(unittest.TestCase):

    def setUp(self):
        self.platform = PlatformWrapper()
        self.platform.startup_platform("base-platform-test.json", use_twistd=False)

    def tearDown(self):
        self.platform.cleanup()

    def test_direct_install_start_stop_start(self):
        uuid = self.platform.direct_build_install_run_agent(AGENT_DIR, CONFIG_FILE)
        time.sleep(5)
        self.platform.direct_stop_agent(uuid)
        time.sleep(5)
        self.platform.direct_start_agent(uuid)