def test_continue_after_kill(self):
        self.tm.start_tunnels()

        self.t.close(wait=False)

        _wait_for_condition(lambda: not is_really_running(self.t), "Process not stopped")
        self.tm.continue_tunnels()
        _wait_for_condition(lambda: is_really_running(self.t), "Process not started")

        self.assertTrue(is_really_running(self.t))
Beispiel #2
0
 def is_running(self):
     if self.proc:
         return is_really_running(self)
     else:
         return False
Beispiel #3
0
 def is_running(self):
     if self.proc:
         return is_really_running(self)
     else:
         return False
    def test_single_run(self):
        self.tm.start_tunnels()
        self.tm.continue_tunnels()
        time.sleep(1)

        self.assertTrue(is_really_running(self.t))