Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2010 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/740307 to your computer and use it in GitHub Desktop.
Save anonymous/740307 to your computer and use it in GitHub Desktop.
def test_mainmenu(self):
offset = url_for(controller='home', action='index')
res = self.app.get(offset)
assert 'Groups' in res, res
assert 'Groups</a>' in res, res
res = res.click(href='/group/')
assert '<h2>Groups</h2>' in res, res
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment