Provide the comment body text in the email notification.

svn path=/plone.app.discussion/trunk/; revision=49032
This commit is contained in:
Timo Stollenwerk
2011-04-22 13:34:50 +00:00
parent f8c39c1b87
commit 31ecf38129
3 changed files with 15 additions and 5 deletions
@@ -87,6 +87,7 @@ class TestUserNotificationUnit(unittest.TestCase):
"http://nohost/plone/d=\noc1/view#%s"
% comment_id
in msg)
self.assertTrue('Comment text' in msg)
def test_do_not_notify_user_when_notification_is_disabled(self):
registry = queryUtility(IRegistry)
@@ -220,6 +221,7 @@ class TestModeratorNotificationUnit(unittest.TestCase):
"http://nohost/plone/d=\noc1/view#%s"
% comment_id
in msg)
self.assertTrue('Comment text' in msg)
def test_notify_moderator_specific_address(self):
# A moderator email address can be specified in the control panel.