test moderator notification enabled setting.
svn path=/plone.app.discussion/branches/notification/; revision=33928
This commit is contained in:
parent
f0fb6514c7
commit
6e46ce7581
@ -61,6 +61,13 @@ class RegistryTest(PloneTestCase):
|
||||
self.failUnless('show_commenter_image' in IDiscussionSettings)
|
||||
self.assertEquals(self.registry['plone.app.discussion.interfaces.IDiscussionSettings.show_commenter_image'], True)
|
||||
|
||||
def test_moderator_notification_enabled(self):
|
||||
# Check show_commenter_image record
|
||||
show_commenter_image = self.registry.records['plone.app.discussion.interfaces.IDiscussionSettings.moderator_notification_enabled']
|
||||
|
||||
self.failUnless('moderator_notification_enabled' in IDiscussionSettings)
|
||||
self.assertEquals(self.registry['plone.app.discussion.interfaces.IDiscussionSettings.moderator_notification_enabled'], False)
|
||||
|
||||
def test_notification_enabled(self):
|
||||
# Check show_commenter_image record
|
||||
show_commenter_image = self.registry.records['plone.app.discussion.interfaces.IDiscussionSettings.notification_enabled']
|
||||
|
@ -118,7 +118,7 @@ class TestModeratorNotificationUnit(PloneTestCase):
|
||||
comment.text = 'Comment text'
|
||||
self.conversation.addComment(comment)
|
||||
self.assertEquals(len(self.mailhost.messages), 0)
|
||||
|
||||
|
||||
def test_suite():
|
||||
return unittest.defaultTestLoader.loadTestsFromName(__name__)
|
||||
|
Loading…
Reference in New Issue
Block a user