Lines Matching refs:mock_cmd_exec
36 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
43 logger_to_use=MOCK_LOGGER, cmd_exec=mock_cmd_exec)
65 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 1)
72 mock_cmd_exec.RunCommand.assert_called_with(expected_args)
76 mock_cmd_exec.reset_mock()
92 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 0)
93 self.assertEqual(mock_cmd_exec.ChrootRunCommand.call_count, 0)
99 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
104 logger_to_use=MOCK_LOGGER, cmd_exec=mock_cmd_exec)
118 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 2)
120 self.assertEqual(len(mock_cmd_exec.RunCommand.call_args_list[0]), 2)
121 actual_arg = mock_cmd_exec.RunCommand.call_args_list[0][0]
130 mock_cmd_exec.RunCommand.call_args_list[0][1]))
133 self.assertEqual(len(mock_cmd_exec.RunCommand.call_args_list[1]), 2)
134 actual_arg = mock_cmd_exec.RunCommand.call_args_list[1][0]
140 self.assertTrue('{}' in repr(mock_cmd_exec.RunCommand.call_args_list[1][1]))
144 mock_cmd_exec.reset_mock()
155 self.assertEqual(mock_cmd_exec.RunCommand.call_count, 0)