Remove commented func

This commit is contained in:
Akshay Sharma 2021-07-15 20:06:56 +05:30
parent c1ef25461e
commit 211fc62b69
1 changed files with 0 additions and 12 deletions

View File

@ -49,18 +49,6 @@ class ResponseTypesTest(unittest.TestCase):
retcls = responsetypes.from_content_type(source)
assert retcls is cls, f"{source} ==> {retcls} != {cls}"
"""def test_from_body(self):
mappings = [
(b'\x03\x02\xdf\xdd\x23', Response),
(b'Some plain text\ndata with tabs\t and null bytes\0', TextResponse),
(b'<html><head><title>Hello</title></head>', HtmlResponse),
(b'<?xml version="1.0" encoding="utf-8"', XmlResponse),
]
for source, cls in mappings:
retcls = responsetypes.from_body(source)
assert retcls is cls, f"{source} ==> {retcls} != {cls}"
"""
def test_from_headers(self):
mappings = [
({'Content-Type': ['text/html; charset=utf-8']}, HtmlResponse),