Searched refs:mock_popen (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_script_helper.py | 39 def test_assert_python_isolated_when_env_not_required(self, mock_popen): argument 43 mock_popen.side_effect = RuntimeError('bail out of unittest') 48 self.assertEqual(1, mock_popen.call_count) 50 popen_command = mock_popen.call_args[0][0] 57 def test_assert_python_not_isolated_when_env_is_required(self, mock_popen): argument 62 mock_popen.side_effect = RuntimeError('bail out of unittest') 67 popen_command = mock_popen.call_args[0][0]
|
/external/oss-fuzz/infra/base-images/base-builder/ |
D | bisect_clang_test.py | 140 with mock.patch('subprocess.Popen', create_mock_popen()) as mock_popen: 145 mock_popen.commands) 164 with mock.patch('subprocess.Popen', create_mock_popen()) as mock_popen: 167 mock_popen.commands) 227 with mock.patch('subprocess.Popen', create_mock_popen()) as mock_popen: 231 mock_popen.commands[0]) 240 with mock.patch('subprocess.Popen', create_mock_popen()) as mock_popen: 243 mock_popen.commands)
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | cloud_storage_unittest.py | 203 def testSwarmingUsesExistingEnv(self, mock_popen): argument 206 mock_gsutil = mock_popen() 212 mock_popen.assert_called_with(
|
/external/python/cpython2/Lib/test/ |
D | test_uuid.py | 442 def mock_popen(cmd): function 456 with test_support.swap_attr(os, 'popen', mock_popen):
|