aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_edit.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-12 18:53:03 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-12 18:53:03 +0100
commitd44140a212fddab3301cbf3a97d3197f8879277b (patch)
treeedc8f09b0e476fc78472b469fdda6adda33b4dc2 /mediagoblin/tests/test_edit.py
parent6ae878e730e006ab674f12c581af8447a0994a9f (diff)
parentddc1cae9ea4c80415557ec0408a56a3a1c60423b (diff)
downloadmediagoblin-d44140a212fddab3301cbf3a97d3197f8879277b.tar.lz
mediagoblin-d44140a212fddab3301cbf3a97d3197f8879277b.tar.xz
mediagoblin-d44140a212fddab3301cbf3a97d3197f8879277b.zip
Merge branch 'sql/dot-notation'
* sql/dot-notation: Dot-Notation for MediaEntry.media_data Dot-Notation for MediaEntry.media_type Dot-Notation for MediaEntry.description(_html) Dot-Notation for MediaEntry.slug Dot-Notation for MediaEntry.title Dot-Notation for MediaEntry.uploader Dot-Notation for MediaEntry.created Dot-Notation: tests/test_edit.py Dot-Notation for Users.fp_token_expire Dot-Notation for Users.fp_verification_key Dot-Notation for Users.bio and .bio_html Dot-Notation for Users.url Dot-Notation for Users.is_admin Dot-Notation for Users.verification_key Dot-Notation for Users.status Dot-Notation for Users.email_verified Dot-Notation for Users.pw_hash Dot-Notation for Users.email Dot-Notation for Users.username
Diffstat (limited to 'mediagoblin/tests/test_edit.py')
-rw-r--r--mediagoblin/tests/test_edit.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/tests/test_edit.py b/mediagoblin/tests/test_edit.py
index c29ddfe9..0cf71e9b 100644
--- a/mediagoblin/tests/test_edit.py
+++ b/mediagoblin/tests/test_edit.py
@@ -44,7 +44,7 @@ def test_change_password(test_app):
# test_user has to be fetched again in order to have the current values
test_user = mg_globals.database.User.one({'username': 'chris'})
- assert bcrypt_check_password('123456', test_user['pw_hash'])
+ assert bcrypt_check_password('123456', test_user.pw_hash)
# test that the password cannot be changed if the given old_password
# is wrong
@@ -59,7 +59,7 @@ def test_change_password(test_app):
test_user = mg_globals.database.User.one({'username': 'chris'})
- assert not bcrypt_check_password('098765', test_user['pw_hash'])
+ assert not bcrypt_check_password('098765', test_user.pw_hash)
@setup_fresh_app
@@ -76,8 +76,8 @@ def change_bio_url(test_app):
test_user = mg_globals.database.User.one({'username': 'chris'})
- assert test_user['bio'] == u'I love toast!'
- assert test_user['url'] == u'http://dustycloud.org/'
+ assert test_user.bio == u'I love toast!'
+ assert test_user.url == u'http://dustycloud.org/'
# test changing the bio and the URL inproperly
too_long_bio = 150 * 'T' + 150 * 'o' + 150 * 'a' + 150 * 's' + 150* 't'