summaryrefslogtreecommitdiff
path: root/tests/test_fixture.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_fixture.py')
-rw-r--r--tests/test_fixture.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_fixture.py b/tests/test_fixture.py
index f5a659a..4d1ddc8 100644
--- a/tests/test_fixture.py
+++ b/tests/test_fixture.py
@@ -35,3 +35,12 @@ def test_fixture_form():
form = res.forms[0]
assert 'file' in form.fields
assert form.action == ''
+
+
+def test_fixture_form_end():
+ def response(environ, start_response):
+ body = b"<html><body><form>sm\xc3\xb6rebr\xc3\xb6</form></body></html>"
+ start_response("200 OK", [('Content-Type', 'text/html'),
+ ('Content-Length', str(len(body)))])
+ return [body]
+ TestApp(response).get('/')