Test if registry has been registered.
svn path=/plone.app.discussion/trunk/; revision=39356
This commit is contained in:
parent
c530e2dbf3
commit
23122ded8b
@ -2,8 +2,10 @@
|
||||
import unittest
|
||||
|
||||
from zope.component import getMultiAdapter
|
||||
from zope.component import createObject, queryUtility
|
||||
|
||||
from plone.registry import Registry
|
||||
from plone.registry.interfaces import IRegistry
|
||||
|
||||
from Products.CMFCore.utils import getToolByName
|
||||
from Products.PloneTestCase.ptc import PloneTestCase
|
||||
@ -22,6 +24,10 @@ class RegistryTest(PloneTestCase):
|
||||
self.registry = Registry()
|
||||
self.registry.registerInterface(IDiscussionSettings)
|
||||
|
||||
def test_registry_registered(self):
|
||||
registry = queryUtility(IRegistry)
|
||||
self.failUnless(registry.forInterface(IDiscussionSettings))
|
||||
|
||||
def test_discussion_controlpanel_view(self):
|
||||
view = getMultiAdapter((self.portal, self.portal.REQUEST),
|
||||
name="discussion-settings")
|
||||
|
Loading…
Reference in New Issue
Block a user