Skip to content

Commit

Permalink
failing test for an exception causing button
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Sutherland committed Mar 19, 2013
1 parent d42eba9 commit 4cc31f2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/zope/testbrowser/tests/test_browser.py
Expand Up @@ -50,6 +50,27 @@ def __call__(self, environ, start_response):
start_response(status, self.next_response_headers)
return [self.next_response_body]

def test_button_without_name(self):
"""
This once blew up.
>>> app = TestApp()
>>> browser = Browser(wsgi_app=app)
>>> app.set_next_response(b'''\
... <html><body>
... <form action="." method="post" enctype="multipart/form-data">
... <button type="button">Do Stuff</button>
... </form></body></html>
... ''')
>>> browser.open('http://localhost/') # doctest: +ELLIPSIS
GET / HTTP/1.1
...
>>> browser.getControl('NotThere') # doctest: +ELLIPSIS
Traceback (most recent call last):
...
LookupError: ...
...
"""

def test_submit_duplicate_name():
"""
Expand Down

0 comments on commit 4cc31f2

Please sign in to comment.