3535@httprettified
3636def test_httpretty_should_mock_a_simple_get_with_requests_read ():
3737 """HTTPretty should mock a simple GET with requests.get"""
38-
3938 httpretty .register_uri (
4039 httpretty .GET , "http://yipit.com/" , body = "Find the best daily deals"
4140 )
@@ -49,7 +48,6 @@ def test_httpretty_should_mock_a_simple_get_with_requests_read():
4948@httprettified
5049def test_httpretty_provides_easy_access_to_querystrings ():
5150 """HTTPretty should provide an easy access to the querystring"""
52-
5351 HTTPretty .register_uri (
5452 HTTPretty .GET , "http://yipit.com/" , body = "Find the best daily deals"
5553 )
@@ -63,7 +61,6 @@ def test_httpretty_provides_easy_access_to_querystrings():
6361@httprettified
6462def test_httpretty_should_mock_headers_requests ():
6563 """HTTPretty should mock basic headers with requests"""
66-
6764 HTTPretty .register_uri (
6865 HTTPretty .GET ,
6966 "http://github.com/" ,
@@ -89,7 +86,6 @@ def test_httpretty_should_mock_headers_requests():
8986@httprettified
9087def test_httpretty_should_allow_adding_and_overwritting_requests ():
9188 """HTTPretty should allow adding and overwritting headers with requests"""
92-
9389 HTTPretty .register_uri (
9490 HTTPretty .GET ,
9591 "http://github.com/foo" ,
@@ -118,7 +114,6 @@ def test_httpretty_should_allow_adding_and_overwritting_requests():
118114@httprettified
119115def test_httpretty_should_allow_forcing_headers_requests ():
120116 """HTTPretty should allow forcing headers with requests"""
121-
122117 HTTPretty .register_uri (
123118 HTTPretty .GET ,
124119 "http://github.com/foo" ,
@@ -137,7 +132,6 @@ def test_httpretty_should_allow_forcing_headers_requests():
137132def test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 ():
138133 """HTTPretty should allow adding and overwritting headers by keyword args " \
139134 "with requests"""
140-
141135 HTTPretty .register_uri (
142136 HTTPretty .GET ,
143137 "http://github.com/foo" ,
@@ -164,7 +158,6 @@ def test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2():
164158@httprettified
165159def test_rotating_responses_with_requests ():
166160 """HTTPretty should support rotating responses with requests"""
167-
168161 HTTPretty .register_uri (
169162 HTTPretty .GET ,
170163 "https://api.yahoo.com/test" ,
@@ -193,7 +186,6 @@ def test_rotating_responses_with_requests():
193186@httprettified
194187def test_can_inspect_last_request ():
195188 """HTTPretty.last_request is a mimetools.Message request from last match"""
196-
197189 HTTPretty .register_uri (
198190 HTTPretty .POST ,
199191 "http://api.github.com/" ,
@@ -215,7 +207,6 @@ def test_can_inspect_last_request():
215207@httprettified
216208def test_can_inspect_last_request_with_ssl ():
217209 """HTTPretty.last_request is recorded even when mocking 'https' (SSL)"""
218-
219210 HTTPretty .register_uri (
220211 HTTPretty .POST ,
221212 "https://secure.github.com/" ,
@@ -237,7 +228,6 @@ def test_can_inspect_last_request_with_ssl():
237228@httprettified
238229def test_httpretty_ignores_querystrings_from_registered_uri ():
239230 """HTTPretty should ignore querystrings from the registered uri (requests library)"""
240-
241231 HTTPretty .register_uri (
242232 HTTPretty .GET , "http://yipit.com/?id=123" , body = b"Find the best daily deals"
243233 )
@@ -299,7 +289,6 @@ def test_multipart():
299289@httprettified
300290def test_httpretty_should_allow_multiple_methods_for_the_same_uri ():
301291 """HTTPretty should allow registering multiple methods for the same uri"""
302-
303292 url = "http://test.com/test"
304293 methods = ["GET" , "POST" , "PUT" , "OPTIONS" ]
305294 for method in methods :
@@ -313,7 +302,6 @@ def test_httpretty_should_allow_multiple_methods_for_the_same_uri():
313302@httprettified
314303def test_httpretty_should_allow_multiple_responses_with_multiple_methods ():
315304 """HTTPretty should allow multiple responses when binding multiple methods to the same uri"""
316-
317305 url = "http://test.com/list"
318306
319307 # add get responses
0 commit comments