Searched refs:mock_popen (Results 1 – 1 of 1) sorted by relevance
39 def test_assert_python_isolated_when_env_not_required(self, mock_popen): argument43 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): argument62 mock_popen.side_effect = RuntimeError('bail out of unittest')67 popen_command = mock_popen.call_args[0][0]