diff --git a/tests/test_responsetypes.py b/tests/test_responsetypes.py index 15a7ea680..16ce36233 100644 --- a/tests/test_responsetypes.py +++ b/tests/test_responsetypes.py @@ -120,8 +120,15 @@ class ResponseTypesTest(unittest.TestCase): 'Content-Type': ['text/html']})}, HtmlResponse), ({'body': b'Some plain text', 'headers': Headers({'Content-Type': 'application/octet-stream'})}, TextResponse), - ({'url': b'http://www.example.com/page/file.html', 'headers': Headers({'Content-Type': 'application/octet-stream'})}, - TextResponse), + ({'url': b'http://www.example.com/page/file.html', + 'headers': Headers({'Content-Type': 'application/octet-stream'})}, TextResponse), + ({'url': 'http://www.example.com/item/file.xml', + 'headers': Headers({'Content-Type': 'application/octet-stream'})}, TextResponse), + ({'url': 'http://www.example.com/item/file.html', + 'headers': Headers({'Content-Type': 'application/octet-stream'})}, TextResponse), + ({'url': 'http://www.example.com/item/file.xml', + 'headers': Headers({'Content-Disposition': ['attachment; filename="data.xml.gz"'], + 'Content-Type': 'application/octet-stream'})}, TextResponse), ({'body': b'\x0c\x1b'}, TextResponse), ({'body': b'this is not '}, TextResponse), ({'body': b'this is not