示例#1
0
    def test06_kill(self):
        """ Killing the process """
        pid_control = PIDControl(PID_PATH)
        pid_control.kill()

        ret = pid_control.established or pid_control.probe()
        self.assertFalse(ret)
示例#2
0
文件: process.py 项目: AnatomicJC/mmc
    def test06_kill(self):
        """ Killing the process """
        pid_control = PIDControl(PID_PATH)
        pid_control.kill()

        ret = pid_control.established or pid_control.probe()
        self.assertFalse(ret)
示例#3
0
 def test01_no_probe(self):
     """ Process not detected yet """
     pid_control = PIDControl(PID_PATH)
     self.assertFalse(pid_control.probe())
示例#4
0
 def test04_probe(self):
     """ Process will be detected """
     pid_control = PIDControl(PID_PATH)
     self.assertTrue(pid_control.probe())
示例#5
0
文件: process.py 项目: AnatomicJC/mmc
 def test04_probe(self):
     """ Process will be detected """
     pid_control = PIDControl(PID_PATH)
     self.assertTrue(pid_control.probe())
示例#6
0
文件: process.py 项目: AnatomicJC/mmc
 def test01_no_probe(self):
     """ Process not detected yet """
     pid_control = PIDControl(PID_PATH)
     self.assertFalse(pid_control.probe())