Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrenneman committed Jan 29, 2013
1 parent 3aab865 commit 1dd7654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dontpanic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def test_login_logout(self):
"""Make sure login and logout works."""
rv = self.login(dontpanic.app.config['USERNAME'],
dontpanic.app.config['PASSWORD'])
assert '<form action="/blog/add" method=post class=add-article>' in rv.data
assert '<form action="/blog/add" class="add-article" method="post">' in rv.data
rv = self.logout()
assert '<form action="/blog/add" method=post class=add-article>' not in rv.data
assert '<form action="/blog/add" class="add-article" method="post">' not in rv.data
rv = self.login(dontpanic.app.config['USERNAME'] + 'x',
dontpanic.app.config['PASSWORD'])
assert 'Invalid username' in rv.data
Expand Down

0 comments on commit 1dd7654

Please sign in to comment.