incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [02/38] git commit: [#6053] ticket:363 refactored tests
Date Fri, 21 Jun 2013 21:34:14 GMT
[#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/cj/6272
Commit: 0670467d1daf600b4e973c746388cb3af25da76d
Parents: c8dff0a
Author: Yuriy Arhipov <yuriyarhipovua@yandex.ru>
Authored: Sat Jun 1 13:18:19 2013 +0400
Committer: Dave Brondsema <dbrondsema@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


Mime
View raw message