def test_getCommunityId_extant(self): context = self._makeRoot() cf = context['communities'] = self._makeContext() cf['extant'] = self._makeContext() mailin = self._makeOne(context) self.assertEqual(mailin.getCommunityId('*****@*****.**'), 'extant')
def test_getCommunityId_nonesuch(self): context = self._makeRoot() context['communities'] = self._makeContext() mailin = self._makeOne(context) self.assertEqual(mailin.getCommunityId('*****@*****.**'), None)