Change publicsuffix2 to publicsuffixlist (#406)

* change to publicsuffixlist

* update publicsuffixlist (now auto-updating)

* Fix unused imports
This commit is contained in:
Jed Laundry
2023-05-10 00:49:41 +12:00
committed by GitHub
parent 062d6ea821
commit a06fdc586f
4 changed files with 11 additions and 46 deletions
+5 -6
View File
@@ -18,14 +18,13 @@ class Test(unittest.TestCase):
def testPSLDownload(self):
subdomain = "foo.example.com"
result = parsedmarc.utils.get_base_domain(subdomain,
use_fresh_psl=True)
result = parsedmarc.utils.get_base_domain(subdomain)
assert result == "example.com"
# Test PSL caching
result = parsedmarc.utils.get_base_domain(subdomain,
use_fresh_psl=True)
assert result == "example.com"
# Test newer PSL entries
subdomain = "e3191.c.akamaiedge.net"
result = parsedmarc.utils.get_base_domain(subdomain)
assert result == "c.akamaiedge.net"
def testAggregateSamples(self):
"""Test sample aggregate/rua DMARC reports"""