Searched refs:mock_open (Results 1 – 15 of 15) sorted by relevance
/tools/test/connectivity/acts/framework/tests/controllers/ |
D | iperf_client_test.py | 86 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/ |
D | config_unittest.py | 205 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
|
D | common_util_unittest.py | 252 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')
|
D | clion_project_file_gen_unittest.py | 499 def test_generate_cmakelists_file(self, mock_write, mock_open, mock_exists): argument 507 self.assertTrue(mock_open.called)
|
/tools/acloud/internal/lib/ |
D | cvd_runtime_config_test.py | 89 mock_open = mock.mock_open(read_data=self.CF_RUNTIME_CONFIG) 91 with mock.patch.object(six.moves.builtins, "open", mock_open):
|
D | utils_test.py | 183 mock_open = mock.mock_open(read_data=public_key) 186 with mock.patch.object(six.moves.builtins, "open", mock_open):
|
D | gcompute_client_test.py | 1252 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/ |
D | save_summary_to_file_test.py | 22 from unittest.mock import mock_open 51 m = mock_open()
|
/tools/tradefederation/core/atest/ |
D | atest_unittest.py | 97 @mock.patch('__builtin__.open', new_callable=mock.mock_open) 149 @mock.patch('__builtin__.open', new_callable=mock.mock_open)
|
D | module_info_unittest.py | 65 @mock.patch('__builtin__.open', new_callable=mock.mock_open)
|
/tools/asuite/atest/ |
D | atest_unittest.py | 97 @mock.patch('builtins.open', new_callable=mock.mock_open) 149 @mock.patch('builtins.open', new_callable=mock.mock_open)
|
D | module_info_unittest.py | 69 @mock.patch('builtins.open', new_callable=mock.mock_open)
|
/tools/acloud/public/actions/ |
D | remote_instance_fvp_device_factory_test.py | 74 m = mock.mock_open(read_data = (
|
D | remote_instance_cf_device_factory_test.py | 287 m = mock.mock_open(read_data = (
|
/tools/acloud/list/ |
D | instance_test.py | 110 mock.mock_open(read_data="test createtime"))
|