Ejemplo n.º 1
0
 def test_isReport_nonesuch(self):
     from zope.interface import directlyProvides
     from karl.models.interfaces import IPeopleDirectory
     context = self._makeRoot()
     pd = context['people'] = self._makeContext()
     directlyProvides(pd, IPeopleDirectory)
     mailin = self._makeOne(context)
     self.failIf(mailin.isReport('nonesuch'))
Ejemplo n.º 2
0
 def test_isReport_nonesuch(self):
     from zope.interface import directlyProvides
     from karl.models.interfaces import IPeopleDirectory
     context = self._makeRoot()
     pd = context['people'] = self._makeContext()
     directlyProvides(pd, IPeopleDirectory)
     mailin = self._makeOne(context)
     self.failIf(mailin.isReport('nonesuch'))
Ejemplo n.º 3
0
 def test_isReport_extant(self):
     from zope.interface import directlyProvides
     from karl.models.interfaces import IPeopleDirectory
     context = self._makeRoot()
     pd = context['people'] = self._makeContext()
     directlyProvides(pd, IPeopleDirectory)
     pd['extant'] = self._makeContext()
     mailin = self._makeOne(context)
     self.failUnless(mailin.isReport('extant'))
Ejemplo n.º 4
0
 def test_isReport_extant(self):
     from zope.interface import directlyProvides
     from karl.models.interfaces import IPeopleDirectory
     context = self._makeRoot()
     pd = context['people'] = self._makeContext()
     directlyProvides(pd, IPeopleDirectory)
     pd['extant'] = self._makeContext()
     mailin = self._makeOne(context)
     self.failUnless(mailin.isReport('extant'))
Ejemplo n.º 5
0
 def test_isReport_alias(self):
     from pyramid.traversal import resource_path
     from zope.interface import directlyProvides
     from karl.models.interfaces import IPeopleDirectory
     context = self._makeRoot()
     pd = context['people'] = self._makeContext()
     directlyProvides(pd, IPeopleDirectory)
     section = pd['section'] = self._makeContext()
     extant = section['extant'] = self._makeContext()
     context.list_aliases['alias'] = resource_path(extant)
     mailin = self._makeOne(context)
     self.failUnless(mailin.isReport('alias'))
Ejemplo n.º 6
0
 def test_isReport_alias(self):
     from pyramid.traversal import resource_path
     from zope.interface import directlyProvides
     from karl.models.interfaces import IPeopleDirectory
     context = self._makeRoot()
     pd = context['people'] = self._makeContext()
     directlyProvides(pd, IPeopleDirectory)
     section = pd['section'] = self._makeContext()
     extant = section['extant'] = self._makeContext()
     context.list_aliases['alias'] = resource_path(extant)
     mailin = self._makeOne(context)
     self.failUnless(mailin.isReport('alias'))