commit e7593e1a8401de7b8d9e3dc3f67533cb2455132f
Author: Roman Podolyaka <email address hidden>
Date: Tue Jun 18 17:47:13 2013 +0300
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.
Reviewed: https:/ /review. openstack. org/33452 github. com/openstack/ python- quantumclient/ commit/ e7593e1a8401de7 b8d9e3dc3f67533 cb2455132f
Committed: http://
Submitter: Jenkins
Branch: master
commit e7593e1a8401de7 b8d9e3dc3f67533 cb2455132f
Author: Roman Podolyaka <email address hidden>
Date: Tue Jun 18 17:47:13 2013 +0300
Fix mocking of HTTPClient. request( ) method.
The test_extend_ list_exceed_ max_uri_ len test case mocks do_request( ) does this instead).
the request() method of HTTPClient class so that it raises
the RequestURITooLong exception. But the real method can't
possibly raise it (Client.
Mocks should emulate the behavior of methods they stub out
and not change it in any way.
Fixes bug 1192197.
Change-Id: I62b2db111ef251 f95eb9aa9c9cc00 b53fdbccc68