Example #1
0
 def test_get_root_helper_daemon(self, mock_daemon_helper):
     conf_path = "/path/to/conf"
     self.flags(use_rootwrap_daemon=True)
     self.flags(rootwrap_config=conf_path)
     utils._get_rootwrap_helper()
     mock_daemon_helper.assert_called_once_with(conf_path)
Example #2
0
 def test_get_root_helper_proc(self, mock_proc_helper):
     self.flags(use_rootwrap_daemon=False)
     self.flags(rootwrap_config="/path/to/conf")
     utils._get_rootwrap_helper()
     mock_proc_helper.assert_called_once_with()