Searched refs:mock_output (Results 1 – 3 of 3) sorted by relevance
220 def test_is_external_run(self, mock_output, mock_hostname): argument222 mock_output.return_value = ''226 mock_output.return_value = 'test@other.com'230 mock_output.return_value = 'test@other.com'234 mock_output.return_value = 'test@other.com'238 mock_output.return_value = 'test@google.com'241 mock_output.return_value = 'test@other.com'245 mock_output.return_value = 'test@other.com'249 mock_output.side_effect = OSError()252 mock_output.side_effect = subprocess.CalledProcessError(1, 'cmd')
242 def test_is_external_run(self, mock_output, mock_hostname): argument244 mock_output.return_value = ''248 mock_output.return_value = 'test@other.com'252 mock_output.return_value = 'test@other.com'256 mock_output.return_value = 'test@other.com'260 mock_output.return_value = 'test@google.com'263 mock_output.return_value = 'test@other.com'267 mock_output.return_value = 'test@other.com'271 mock_output.side_effect = OSError()274 mock_output.side_effect = subprocess.CalledProcessError(1, 'cmd')[all …]
240 mock_output = [None] * contest.Contest.MAXIMUM_OUTPUT_READ_RETRIES241 mock_output.append(244 service_output.side_effect = mock_output