Пример #1
0
 def test_domain_with_wild_card(self):
     self.assertEqual(
         dmarc.get_organizational_domain('ssub.sub.foo.kobe.jp'),
         'sub.foo.kobe.jp')
Пример #2
0
 def test_exception_to_wild_card(self):
     self.assertEqual(
         dmarc.get_organizational_domain('ssub.sub.city.kobe.jp'),
         'city.kobe.jp')
Пример #3
0
 def test_no_data_for_domain(self):
     self.assertEqual(
         dmarc.get_organizational_domain('sub.dom.example.nxtld'),
         'example.nxtld')