Пример #1
0
 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')
Пример #2
0
 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')
Пример #3
0
 def test_getCommunityId_nonesuch(self):
     context = self._makeRoot()
     context['communities'] = self._makeContext()
     mailin = self._makeOne(context)
     self.assertEqual(mailin.getCommunityId('*****@*****.**'), None)
Пример #4
0
 def test_getCommunityId_nonesuch(self):
     context = self._makeRoot()
     context['communities'] = self._makeContext()
     mailin = self._makeOne(context)
     self.assertEqual(mailin.getCommunityId('*****@*****.**'), None)