mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-07-06 08:45:08 +00:00
Change publicsuffix2 to publicsuffixlist (#406)
* change to publicsuffixlist * update publicsuffixlist (now auto-updating) * Fix unused imports
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user