def test_9990_stop_the_plugin(self): tp = TestPlugin(self.name, get_sanitized_hostname()) tp.request_stop() self.assertTrue(tp.wait_for_event(STATUS_STOPPED))
#!/usr/bin/python # -*- coding: utf-8 -*- from domogik.tests.common.testplugin import TestPlugin from domogik.common.utils import get_sanitized_hostname tp = TestPlugin('test', get_sanitized_hostname()) tp.request_stop()