/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/test/connectivity/acts/framework/tests/controllers/bits_lib/ |
D | bits_service_test.py | 31 def test_output_log_opens_on_creation(self, mock_open, *_): argument 34 mock_open.assert_called_with('log_path', 'w') 38 def test_output_log_gets_closed_on_cleanup(self, _, __, mock_open, *___): argument 40 mock_open.return_value = mock_log
|
/tools/acloud/internal/lib/ |
D | cvd_runtime_config_test.py | 90 mock_open = mock.mock_open(read_data=self.CF_RUNTIME_CONFIG) 92 with mock.patch.object(six.moves.builtins, "open", mock_open):
|
D | utils_test.py | 191 mock_open = mock.mock_open(read_data=public_key) 194 with mock.patch.object(six.moves.builtins, "open", mock_open):
|
D | android_build_client_test.py | 223 self.Patch(six.moves.builtins, "open", mock.mock_open(read_data=certification))
|
D | gcompute_client_test.py | 1256 m = mock.mock_open(read_data=self.SSHKEY) 1376 m = mock.mock_open(read_data=self.SSHKEY)
|
/tools/acloud/public/actions/ |
D | remote_instance_fvp_device_factory_test.py | 77 mock_open = mock.mock_open(read_data = ( 83 with mock.patch.object(six.moves.builtins, "open", mock_open):
|
D | remote_instance_cf_device_factory_test.py | 310 required_images = mock.mock_open(read_data=(
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/power/tel/lab/ |
D | save_summary_to_file_test.py | 19 from unittest.mock import mock_open 51 m = mock_open()
|
/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/asuite/atest-py2/ |
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 | 100 @mock.patch('builtins.open', new_callable=mock.mock_open) 154 @mock.patch('builtins.open', new_callable=mock.mock_open)
|
D | module_info_unittest.py | 76 @mock.patch('builtins.open', new_callable=mock.mock_open)
|