def test_valid_dmarc_ri(src): interval = rfc7489.Rule('dmarc-ainterval') assert interval.parse_all(src)
def test_valid_dmarc_furi(src): auri = rfc7489.Rule('dmarc-furi') assert auri.parse_all(src)
def test_valid_dmarc_aspf(src): aspf = rfc7489.Rule('dmarc-aspf') assert aspf.parse_all(src)
def test_valid_dmarc_version(): version = rfc7489.Rule('dmarc-version') assert version.parse_all("v=DMARC1") assert version.parse_all("v = DMARC1") assert version.parse_all("V = DMARC1")
def test_valid_dmarc_srequest(src): srequest = rfc7489.Rule('dmarc-srequest') assert srequest.parse_all(src)
def test_valid_dmarc_seperator(src): separator = rfc7489.Rule('dmarc-sep') assert separator.parse_all(src)
def test_valid_dmarc_request(src): request = rfc7489.Rule('dmarc-request') assert request.parse_all(src)
def test_valid_dmarc_uri(src): uri = rfc7489.Rule('dmarc-uri') assert uri.parse_all(src)
def test_valid_dmarc_record(src): record = rfc7489.Rule('dmarc-record') assert record.parse_all(src)
def test_valid_dmarc_pct(src): pct = rfc7489.Rule('dmarc-percent') assert pct.parse_all(src)
def test_valid_dmarc_rf(src): rf = rfc7489.Rule('dmarc-rfmt') assert rf.parse_all(src)
def test_valid_dmarc_fo(src): fo = rfc7489.Rule('dmarc-fo') assert fo.parse_all(src)