Added tests for minitwit. Testing with Flask is awesome

This commit is contained in:
Armin Ronacher 2010-04-11 18:45:06 +02:00
parent 03168a5d53
commit f2dc38cda6
4 changed files with 153 additions and 4 deletions

View file

@ -216,7 +216,7 @@ def register():
elif not request.form['password']:
error = 'You have to enter a password'
elif request.form['password'] != request.form['password2']:
error = 'The two passwords to not match'
error = 'The two passwords do not match'
elif get_user_id(request.form['username']) is not None:
error = 'The username is already taken'
else: