Пример #1
0
def test_valid_dmarc_ri(src):
    interval = rfc7489.Rule('dmarc-ainterval')
    assert interval.parse_all(src)
Пример #2
0
def test_valid_dmarc_furi(src):
    auri = rfc7489.Rule('dmarc-furi')
    assert auri.parse_all(src)
Пример #3
0
def test_valid_dmarc_aspf(src):
    aspf = rfc7489.Rule('dmarc-aspf')
    assert aspf.parse_all(src)
Пример #4
0
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")
Пример #5
0
def test_valid_dmarc_srequest(src):
    srequest = rfc7489.Rule('dmarc-srequest')
    assert srequest.parse_all(src)
Пример #6
0
def test_valid_dmarc_seperator(src):
    separator = rfc7489.Rule('dmarc-sep')
    assert separator.parse_all(src)
Пример #7
0
def test_valid_dmarc_request(src):
    request = rfc7489.Rule('dmarc-request')
    assert request.parse_all(src)
Пример #8
0
def test_valid_dmarc_uri(src):
    uri = rfc7489.Rule('dmarc-uri')
    assert uri.parse_all(src)
Пример #9
0
def test_valid_dmarc_record(src):
    record = rfc7489.Rule('dmarc-record')
    assert record.parse_all(src)
Пример #10
0
def test_valid_dmarc_pct(src):
    pct = rfc7489.Rule('dmarc-percent')
    assert pct.parse_all(src)
Пример #11
0
def test_valid_dmarc_rf(src):
    rf = rfc7489.Rule('dmarc-rfmt')
    assert rf.parse_all(src)
Пример #12
0
def test_valid_dmarc_fo(src):
    fo = rfc7489.Rule('dmarc-fo')
    assert fo.parse_all(src)