summaryrefslogtreecommitdiff
path: root/addons/website_forum/tests
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-03-30 12:52:26 +0200
committerThibault Delavallée <tde@openerp.com>2015-04-27 10:36:15 +0200
commit4b122ad41d873febe288ab1f8c6cdc078ca2a479 (patch)
tree9792fcbc0c61274ca6296e3ce6c2f67a2467b377 /addons/website_forum/tests
parentb7f04278bd5375d6dc21a3381df91c725bb2fd44 (diff)
[MIGR] mail: migration to the new API
Diffstat (limited to 'addons/website_forum/tests')
-rw-r--r--addons/website_forum/tests/test_forum.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_forum/tests/test_forum.py b/addons/website_forum/tests/test_forum.py
index 50ce7055ced..e7c1cacce4d 100644
--- a/addons/website_forum/tests/test_forum.py
+++ b/addons/website_forum/tests/test_forum.py
@@ -105,12 +105,12 @@ class TestForum(TestForumCommon):
def test_comment_crash(self):
with self.assertRaises(KarmaError):
- self.post.sudo(self.user_portal).message_post(body='Should crash', type='comment')
+ self.post.sudo(self.user_portal).message_post(body='Should crash', message_type='comment')
def test_comment(self):
- self.post.sudo(self.user_employee).message_post(body='Test0', type='notification')
+ self.post.sudo(self.user_employee).message_post(body='Test0', message_type='notification')
self.user_employee.karma = KARMA['com_all']
- self.post.sudo(self.user_employee).message_post(body='Test1', type='comment')
+ self.post.sudo(self.user_employee).message_post(body='Test1', message_type='comment')
self.assertEqual(len(self.post.message_ids), 4, 'website_forum: wrong behavior of message_post')
def test_convert_answer_to_comment_crash(self):