You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/01/21 21:34:43 UTC
[2/2] git commit: [#5580] Fixed tests missing asserts
Updated Branches:
refs/heads/master 7c8d7a65a -> 7c5e5a657
[#5580] Fixed tests missing asserts
Signed-off-by: Cory Johns <jo...@geek.net>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/7c5e5a65
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7c5e5a65
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7c5e5a65
Branch: refs/heads/master
Commit: 7c5e5a6577131d35686aeb98d778459f0649432d
Parents: 8a9b8f3
Author: Cory Johns <jo...@geek.net>
Authored: Mon Jan 21 20:32:13 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Mon Jan 21 20:32:13 2013 +0000
----------------------------------------------------------------------
.../forgediscussion/tests/functional/test_forum.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7c5e5a65/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
----------------------------------------------------------------------
diff --git a/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py b/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
index 8937e68..62febb0 100644
--- a/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
+++ b/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
@@ -382,7 +382,7 @@ class TestForum(TestController):
params[f.find('select')['name']] = 'testforum'
params[f.find('input',{'style':'width: 90%'})['name']] = 'Test Thread'
r = self.app.post('/discussion/save_new_topic', params=params)
- spam_checker.check.call_args[0] == 'Test Thread\nThis is a *test thread*', \
+ assert spam_checker.check.call_args[0] == ('Test Thread\nThis is a *test thread*',), \
spam_checker.check.call_args[0]
r = self.app.get('/admin/discussion/forums')
assert 'Message posted' in r
@@ -447,7 +447,7 @@ class TestForum(TestController):
params[field['name']] = field.has_key('value') and field['value'] or ''
params[f.find('textarea')['name']] = 'bbb'
thread = self.app.post(str(rep_url), params=params)
- spam_checker.check.call_args[0] == 'bbb', spam_checker.check.call_args[0]
+ assert spam_checker.check.call_args[0] == ('bbb',), spam_checker.check.call_args[0]
thread = self.app.get(url)
# beautiful soup is getting some unicode error here - test without it
assert thread.html.findAll('div',{'class':'display_post'})[0].find('p').string == 'aaa'