Skip to content

Commit

Permalink
[fix] tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gawel committed Aug 7, 2011
1 parent b8239a0 commit b2be30a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ def test_meps_comments(self):
resp = self.app.get('/europe/parliament/names/')
l = pq(resp.pyquery('a[href^="/europe/parliament/deputy/"]')[0]).attr.href
resp = self.app.get(l)
self.assert_(len(resp.forms)==1, resp.forms)
form = resp.form # comment form is the only one
form = resp.forms[1]
resp = form.submit()
resp.mustcontain('This field is required.')

Expand All @@ -29,8 +28,7 @@ def test_meps_comments(self):
resp = self.app.get('/europe/parliament/names/')
l = pq(resp.pyquery('a[href^="/europe/parliament/deputy/"]')[0]).attr.href
resp = self.app.get(l)
self.assert_(len(resp.forms)==1, resp.forms)
form = resp.form # comment form is the only one
form = resp.forms[1]

# user dont need name and email
form['comment'] = 'ACTA sucks'
Expand Down

0 comments on commit b2be30a

Please sign in to comment.