You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/06/13 21:32:46 UTC
[2/2] git commit: [#6053] ticket:363 refactored tests
[#6053] ticket:363 refactored tests
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/0670467d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/0670467d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/0670467d
Branch: refs/heads/master
Commit: 0670467d1daf600b4e973c746388cb3af25da76d
Parents: c8dff0a
Author: Yuriy Arhipov <yu...@yandex.ru>
Authored: Sat Jun 1 13:18:19 2013 +0400
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu Jun 13 19:32:29 2013 +0000
----------------------------------------------------------------------
Allura/allura/tests/model/test_auth.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/0670467d/Allura/allura/tests/model/test_auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/model/test_auth.py b/Allura/allura/tests/model/test_auth.py
index 36e7cca..ea160fe 100644
--- a/Allura/allura/tests/model/test_auth.py
+++ b/Allura/allura/tests/model/test_auth.py
@@ -181,11 +181,11 @@ def test_openid_claimed_by_user():
c.user.disabled = True
oid.claimed_by_user_id = c.user._id
ThreadLocalORMSession.flush_all()
- assert oid.claimed_by_user() is not c.user
+ assert oid.claimed_by_user() is None
@with_setup(setUp)
-def test_q():
+def test_email_address_claimed_by_user():
addr = M.EmailAddress(_id='test_admin@sf.net', claimed_by_user_id=c.user._id)
c.user.disabled = True
ThreadLocalORMSession.flush_all()
- assert addr.claimed_by_user() is not c.user
+ assert addr.claimed_by_user() is None