Exemplo 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
Exemplo 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
Exemplo 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')
Exemplo 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]')
Exemplo 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
Exemplo 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]")
Exemplo 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
Exemplo 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')