Esempio n. 1
0
def test_email_urls():
    body = parse_message(msg)
    urls = extract_urls(body[0])
    assert 'http://microsft-exchange-migration.890m.com/' in urls
    assert 'http://microsft-exchange-migration.890mm.com/' in urls
Esempio n. 2
0
def test_email_urls():
    body = parse_message(msg)
    urls = extract_urls(body[0])
    assert 'http://www.socialservices.cn/detail.php?id=9' in urls
Esempio n. 3
0
def test_parse_message():
    body = parse_message(msg)
    assert type(body) is list
    assert body[0].startswith(b'Received: from ironport.csirtgadgets.org')
Esempio n. 4
0
def test_parse_message():
    body = parse_message(msg)
    assert type(body) is list
    assert body[0].startswith(b'Delivered-To: [email protected]')
Esempio n. 5
0
def test_email_urls():
    body = parse_message(msg)
    urls = extract_urls(body[0])
    assert "http://www.socialservices.cn/detail.php?id=9" in urls
Esempio n. 6
0
def test_parse_message():
    body = parse_message(msg)
    assert type(body) is list
    assert body[0].startswith(b"Delivered-To: [email protected]")
Esempio n. 7
0
def test_email_urls():
    body = parse_message(msg)
    urls = extract_urls(body[0])
    assert 'http://microsft-exchange-migration.890m.com/' in urls
    assert 'http://microsft-exchange-migration.890mm.com/' in urls
Esempio n. 8
0
def test_parse_message():
    body = parse_message(msg)
    assert type(body) is list
    assert body[0].startswith(b'Received: from ironport.csirtgadgets.org')