Home
last modified time | relevance | path

Searched refs:mock_open (Results 1 – 15 of 15) sorted by relevance

/tools/test/connectivity/acts/framework/tests/controllers/
Diperf_client_test.py86 def test_start_writes_to_full_file_path(self, mock_call, mock_open): argument
93 mock_open.assert_called_with(file_path, 'w')
96 mock_open().__enter__.return_value,
105 def test_start_writes_output_to_full_file_path(self, mock_open): argument
113 mock_open.assert_called_with(file_path, 'w')
114 mock_open().__enter__().write.assert_called_with(
123 def test_start_writes_output_to_full_file_path(self, mock_open): argument
134 mock_open.assert_called_with(file_path, 'w')
135 mock_open().__enter__().write.assert_called_with('output')
/tools/asuite/aidegen/lib/
Dconfig_unittest.py205 def test_deprecated_intellij_version(self, mock_open, mock_isfile): argument
212 mock_open.side_effect = [
213 mock.mock_open(read_data=expacted_data).return_value
222 mock_open.side_effect = [
223 mock.mock_open(read_data=expacted_data).return_value
Dcommon_util_unittest.py252 def test_read_file_content(self, mock_open): argument
256 mock_open.side_effect = [
257 mock.mock_open(read_data=expacted_data1).return_value
260 mock_open.assert_called_once_with(file_a, encoding='utf8')
Dclion_project_file_gen_unittest.py499 def test_generate_cmakelists_file(self, mock_write, mock_open, mock_exists): argument
507 self.assertTrue(mock_open.called)
/tools/acloud/internal/lib/
Dcvd_runtime_config_test.py89 mock_open = mock.mock_open(read_data=self.CF_RUNTIME_CONFIG)
91 with mock.patch.object(six.moves.builtins, "open", mock_open):
Dutils_test.py183 mock_open = mock.mock_open(read_data=public_key)
186 with mock.patch.object(six.moves.builtins, "open", mock_open):
Dgcompute_client_test.py1252 m = mock.mock_open(read_data=self.SSHKEY)
1372 m = mock.mock_open(read_data=self.SSHKEY)
/tools/test/connectivity/acts/framework/tests/test_utils/power/tel/lab/
Dsave_summary_to_file_test.py22 from unittest.mock import mock_open
51 m = mock_open()
/tools/tradefederation/core/atest/
Datest_unittest.py97 @mock.patch('__builtin__.open', new_callable=mock.mock_open)
149 @mock.patch('__builtin__.open', new_callable=mock.mock_open)
Dmodule_info_unittest.py65 @mock.patch('__builtin__.open', new_callable=mock.mock_open)
/tools/asuite/atest/
Datest_unittest.py97 @mock.patch('builtins.open', new_callable=mock.mock_open)
149 @mock.patch('builtins.open', new_callable=mock.mock_open)
Dmodule_info_unittest.py69 @mock.patch('builtins.open', new_callable=mock.mock_open)
/tools/acloud/public/actions/
Dremote_instance_fvp_device_factory_test.py74 m = mock.mock_open(read_data = (
Dremote_instance_cf_device_factory_test.py287 m = mock.mock_open(read_data = (
/tools/acloud/list/
Dinstance_test.py110 mock.mock_open(read_data="test createtime"))