1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: Remove broken test
This test looks like broken, and if it doesn't really raise something, it
still LGTM... :)
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2018-09-18
--- python-httpretty-0.9.5.orig/tests/unit/test_httpretty.py
+++ python-httpretty-0.9.5/tests/unit/test_httpretty.py
@@ -48,24 +48,6 @@ Content-Type: %(content_type)s
"""
-def test_httpretty_should_raise_proper_exception_on_inconsistent_length():
- ("HTTPretty should raise proper exception on inconsistent Content-Length / "
- "registered response body")
-
- HTTPretty.register_uri.when.called_with(
- HTTPretty.GET,
- "http://github.com/gabrielfalcao",
- body="that's me!",
- adding_headers={
- 'Content-Length': '999'
- }
- ).should.have.raised(
- HTTPrettyError,
- 'HTTPretty got inconsistent parameters. The header Content-Length you registered expects size "999" '
- 'but the body you registered for that has actually length "10".'
- )
-
-
def test_httpretty_should_raise_on_socket_send_when_uri_registered():
("HTTPretty should raise a RuntimeError when the fakesocket is "
"used in an invalid usage.")
|