summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGael Pasgrimaud <gael@gawel.org>2013-02-22 15:26:12 +0100
committerGael Pasgrimaud <gael@gawel.org>2013-02-22 15:26:12 +0100
commit3a2445e40254bdc0072975ab3dcabfdf28f7b5f2 (patch)
tree92b91adcaf3a35053c61e825ef53ab76a3d8d8e6 /tests
parentb84fc78b036961c1ec65dcd02f57d72cfa540e46 (diff)
downloadwebtest-3a2445e40254bdc0072975ab3dcabfdf28f7b5f2.tar.gz
few more tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test_app.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_app.py b/tests/test_app.py
index 8308976..d3d9caa 100644
--- a/tests/test_app.py
+++ b/tests/test_app.py
@@ -26,6 +26,14 @@ class TestApp(unittest.TestCase):
[], [(six.b('file'), six.b('data.txt'), six.b('data'))])
self.assertIn(to_bytes('data.txt'), data[-1])
+ data = self.app.encode_multipart(
+ [('key', 'value')], [])
+ self.assertIn(to_bytes('name="key"'), data[-1])
+
+ data = self.app.encode_multipart(
+ [(six.b('key'), six.b('value'))], [])
+ self.assertIn(to_bytes('name="key"'), data[-1])
+
class TestStatus(unittest.TestCase):