Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mocking of HTTPClient.request() method.
The test_extend_list_exceed_max_uri_len test case mocks the request() method of HTTPClient class so that it raises the RequestURITooLong exception. But the real method can't possibly raise it (Client.do_request() does this instead). Mocks should emulate the behavior of methods they stub out and not change it in any way. Fixes bug 1192197. Change-Id: I62b2db111ef251f95eb9aa9c9cc00b53fdbccc68
- Loading branch information
Roman Podolyaka
committed
Jun 18, 2013
1 parent
cfd1e50
commit e7593e1
Showing
2 changed files
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters