Exemple #1
0
 def test_get_root_helper_child_pid(self):
     pid = utils.get_root_helper_child_pid(mock.sentinel.pid,
                                           mock.sentinel.exp_cmd,
                                           run_as_root=False)
     self.assertEqual(str(mock.sentinel.pid), pid)
Exemple #2
0
 def test_get_root_helper_child_pid(self):
     pid = utils.get_root_helper_child_pid(
         mock.sentinel.pid,
         mock.sentinel.exp_cmd,
         run_as_root=False)
     self.assertEqual(str(mock.sentinel.pid), pid)