diff options
| author | Stéphane Klein <sklein@bearstech.com> | 2013-02-22 16:35:00 +0100 |
|---|---|---|
| committer | Stéphane Klein <sklein@bearstech.com> | 2013-02-22 17:14:09 +0100 |
| commit | 9a240b418c0ef878dc6038dee618d1a0da1d131b (patch) | |
| tree | 37cd70177f86974c1676c489d6b42aaeb7ec98b5 /tests | |
| parent | 41a01f4dfc5cb847cbd39b9fc1b26037648fb1e1 (diff) | |
| download | webtest-9a240b418c0ef878dc6038dee618d1a0da1d131b.tar.gz | |
Improve webtest.response.TestResponse coverage
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_response.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_response.py b/tests/test_response.py index 46064b0..632f7d2 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -146,6 +146,10 @@ class TestResponse(unittest.TestCase): self.assertRaises(IndexError, res.mustcontain, 'not found') res.mustcontain('foobar', no='not found') self.assertRaises(IndexError, res.mustcontain, no='foobar') + self.assertRaises( + TypeError, + res.mustcontain, invalid_param='foobar' + ) def test_click(self): app = webtest.TestApp(links_app) @@ -264,3 +268,8 @@ class TestResponse(unittest.TestCase): getattr, resp, 'form' ) + + def test_showbrowser(self): + app = webtest.TestApp(debug_app) + res = app.post('/') + res.showbrowser() |
