Skip to content
Browse files

Minor test adjustments

  • Loading branch information...
1 parent aa707af commit ab1870b596b9514b9fc0e83405eb52c5727d0ff0 @zachwill committed May 9, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/test_app.py
View
8 tests/test_app.py
@@ -50,16 +50,16 @@ def test_index_page(self):
def test_flask_default_redirecting(self):
rv = self.app.get('/todo')
- assert 'Redirecting' in rv.data
+ assert 'Redirecting...' in rv.data
assert rv.status_code == 301
def test_todo_page(self):
rv = self.app.get('/todo/')
assert 'some todos' in rv.data
- def test_add_todo_csrf_is_missing(self):
- rv = self.app.post('/todo/add', flask.json.dumps({'todo':'tests'}))
- assert 'Missing or invalid CSRF token' in rv.data
+ def test_add_todo_and_redirect(self):
+ rv = self.app.post('/todo/add', data=dict(todo='tests'))
+ assert 'Redirecting...' in rv.data
def test_qunit_page(self):
rv = self.app.get('/qunit/')

0 comments on commit ab1870b

Please sign in to comment.
Something went wrong with that request. Please try again.