コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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))
コード例 #4
0
 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))