HomeSort by relevance Sort by last modified time
    Searched refs:mock_popen (Results 1 - 3 of 3) sorted by null

  /tools/test/connectivity/tools/lab/tests/
usb_metric_test.py 34 with mock.patch('subprocess.Popen') as mock_popen:
35 mock_popen.return_value.stdout = BytesIO(
43 with mock.patch('subprocess.Popen') as mock_popen:
44 mock_popen.return_value.stdout = BytesIO(b'')
  /external/python/cpython3/Lib/test/
test_script_helper.py 38 def test_assert_python_isolated_when_env_not_required(self, mock_popen):
42 mock_popen.side_effect = RuntimeError('bail out of unittest')
47 self.assertEqual(1, mock_popen.call_count)
49 popen_command = mock_popen.call_args[0][0]
56 def test_assert_python_not_isolated_when_env_is_required(self, mock_popen):
61 mock_popen.side_effect = RuntimeError('bail out of unittest')
66 popen_command = mock_popen.call_args[0][0]
  /external/python/cpython2/Lib/test/
test_uuid.py 409 def mock_popen(cmd): function in function:.test_find_mac
423 with test_support.swap_attr(os, 'popen', mock_popen):

Completed in 161 milliseconds