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.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test_fixture.py b/tests/test_fixture.py
index ba56488..f5a659a 100644
--- a/tests/test_fixture.py
+++ b/tests/test_fixture.py
@@ -1,6 +1,7 @@
-from paste.debug.debugapp import SimpleApplication
+from paste.debug.debugapp import SimpleApplication, SlowConsumer
from paste.fixture import TestApp
+
def test_fixture():
app = TestApp(SimpleApplication())
res = app.get('/', params={'a': ['1', '2']})
@@ -26,3 +27,11 @@ def test_fixture():
assert ('one=first' in hc)
assert ('two=second' in hc)
assert ('three=' in hc)
+
+
+def test_fixture_form():
+ app = TestApp(SlowConsumer())
+ res = app.get('/')
+ form = res.forms[0]
+ assert 'file' in form.fields
+ assert form.action == ''