Dot-Notation for Users.fp_token_expire
[mediagoblin.git] / mediagoblin / tests / test_tests.py
index 8ac7f0a4352c7d6727dcaf18d1da60caaacac3a3..25bb52b3f17046b7eac1e5604e91d739976bb9f8 100644 (file)
@@ -1,5 +1,5 @@
 # GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011 MediaGoblin contributors.  See AUTHORS.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
@@ -27,9 +27,9 @@ def test_get_test_app_wipes_db():
     assert mg_globals.database.User.find().count() == 0
 
     new_user = mg_globals.database.User()
-    new_user['username'] = u'lolcat'
-    new_user['email'] = u'lol@cats.example.org'
-    new_user['pw_hash'] = u'pretend_this_is_a_hash'
+    new_user.username = u'lolcat'
+    new_user.email = u'lol@cats.example.org'
+    new_user.pw_hash = u'pretend_this_is_a_hash'
     new_user.save()
     assert mg_globals.database.User.find().count() == 1