def test_0050_start_the_plugin(self): tp = TestPlugin(self.name, get_sanitized_hostname()) self.assertTrue(tp.request_startup()) self.assertTrue(tp.wait_for_event(STATUS_ALIVE)) # just wait 1 second to get clearer logs time.sleep(10)
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))