fix tests

This commit is contained in:
Maximilian Hils 2015-09-05 20:53:44 +02:00
parent 5125c669cc
commit a8d931089c

View File

@ -164,16 +164,16 @@ Content-Disposition: form-data; name="submit-name"
Larry Larry
--AaB03x --AaB03x
""".strip() """.strip()
h = Headers(content_type="multipart/form-data; boundary=AaB03x"), h = Headers(content_type="multipart/form-data; boundary=AaB03x")
assert view(h, v, 1000) assert view(h, v, 1000)
h = Headers(), h = Headers()
assert not view(h, v, 1000) assert not view(h, v, 1000)
h = Headers(content_type="multipart/form-data"), h = Headers(content_type="multipart/form-data")
assert not view(h, v, 1000) assert not view(h, v, 1000)
h = Headers(content_type="unparseable"), h = Headers(content_type="unparseable")
assert not view(h, v, 1000) assert not view(h, v, 1000)
def test_get_content_view(self): def test_get_content_view(self):