def test_isCommunity_extant(self): context = self._makeRoot() cf = context['communities'] = self._makeContext() cf['extant'] = self._makeContext() mailin = self._makeOne(context) self.failUnless(mailin.isCommunity('extant'))
def test_isCommunity_nonesuch(self): context = self._makeRoot() context['communities'] = self._makeContext() mailin = self._makeOne(context) self.failIf(mailin.isCommunity('nonesuch'))