You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2015/12/17 23:54:43 UTC
[3/3] allura git commit: [#8013] Assertions added.
[#8013] Assertions added.
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/90de4c9a
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/90de4c9a
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/90de4c9a
Branch: refs/heads/master
Commit: 90de4c9a2e497341858fd610040c4dfc0ed3a601
Parents: a566641
Author: dastanforever <pr...@gmail.com>
Authored: Wed Dec 16 23:10:09 2015 +0530
Committer: Heith Seewald <he...@gmail.com>
Committed: Thu Dec 17 16:53:23 2015 -0600
----------------------------------------------------------------------
Allura/allura/tests/functional/test_auth.py | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/90de4c9a/Allura/allura/tests/functional/test_auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_auth.py b/Allura/allura/tests/functional/test_auth.py
index 855d315..8e491a6 100644
--- a/Allura/allura/tests/functional/test_auth.py
+++ b/Allura/allura/tests/functional/test_auth.py
@@ -722,6 +722,7 @@ class TestAuth(TestController):
))
user = M.User.query.get(username='aaa')
assert not user.pending
+ assert_equal(M.Project.query.find({'name': 'u/aaa'}).count(), 1)
with h.push_config(config, **{'auth.require_email_addr': 'true'}):
self.app.post(
'/auth/save_new',
@@ -735,6 +736,7 @@ class TestAuth(TestController):
))
user = M.User.query.get(username='bbb')
assert user.pending
+ assert_equal(M.Project.query.find({'name': 'u/bbb'}).count(), 0)
def test_verify_email(self):
with h.push_config(config, **{'auth.require_email_addr': 'true'}):
@@ -759,6 +761,7 @@ class TestAuth(TestController):
assert not user.pending
assert em.confirmed
assert user.get_pref('email_address')
+ assert_equal(M.Project.query.find({'name': 'u/aaa'}).count(), 1)
def test_create_account_disabled_header_link(self):
with h.push_config(config, **{'auth.allow_user_registration': 'false'}):