diff options
author | Gael Pasgrimaud <gael@gawel.org> | 2023-03-09 10:04:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 10:04:11 +0100 |
commit | fb46c6e6bbf08ba7e3624c4d83b0b8161cbe4222 (patch) | |
tree | 0da53aa53e31db88f629e1623e4bdb1681ada5a7 /tests/test_response.py | |
parent | 8ef619fff5127af55b66c1e6c4f8568f3a29acf4 (diff) | |
parent | b5c16e70e14efc867c089704c3f73fd4cc8eb9d6 (diff) | |
download | webtest-main.tar.gz |
Add TestResponse.clickbutton onclick kwarg
Diffstat (limited to 'tests/test_response.py')
-rw-r--r-- | tests/test_response.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_response.py b/tests/test_response.py index f2799bb..aa1cb1d 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -250,6 +250,10 @@ class TestResponse(unittest.TestCase): 'This is foo.', app.get('/').clickbutton(buttonid='button1', verbose=True) ) + self.assertIn( + 'This is foo.', + app.get('/').clickbutton(buttonid='button3', onclick=r".*href='(.*?)'", verbose=True) + ) self.assertRaises( IndexError, app.get('/').clickbutton, buttonid='button2' |