def test__execute_ignoring_errors(self): dnsmasq._execute(self.command, ignore_errors=True) self.mock_execute.assert_called_once_with( self.command, run_as_root=True, shell=True, check_exit_code=False, root_helper=self.rootwrap_cmd)
def test__execute(self): dnsmasq._execute(self.command) self.mock_execute.assert_called_once_with( self.command, run_as_root=True, shell=True, check_exit_code=True, root_helper=self.rootwrap_cmd)
def test__execute_empty(self): dnsmasq._execute() self.mock_execute.assert_not_called()
def test__execute_empty(self): dnsmasq._execute() self.mock_execute.assert_not_called()
def test__execute_ignoring_errors(self): dnsmasq._execute(self.command, ignore_errors=True) self.mock_execute.assert_called_once_with( self.command, run_as_root=True, shell=True, check_exit_code=False, root_helper=self.rootwrap_cmd)
def test__execute(self): dnsmasq._execute(self.command) self.mock_execute.assert_called_once_with( self.command, run_as_root=True, shell=True, check_exit_code=True, root_helper=self.rootwrap_cmd)