diff options
| author | Gael Pasgrimaud <gael@gawel.org> | 2013-02-22 15:26:12 +0100 |
|---|---|---|
| committer | Gael Pasgrimaud <gael@gawel.org> | 2013-02-22 15:26:12 +0100 |
| commit | 3a2445e40254bdc0072975ab3dcabfdf28f7b5f2 (patch) | |
| tree | 92b91adcaf3a35053c61e825ef53ab76a3d8d8e6 /tests | |
| parent | b84fc78b036961c1ec65dcd02f57d72cfa540e46 (diff) | |
| download | webtest-3a2445e40254bdc0072975ab3dcabfdf28f7b5f2.tar.gz | |
few more tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_app.py | 8 |
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): |
