예제 #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
예제 #2
0
파일: t1.py 프로젝트: aeppert/py-cifsdk
def test_email_urls():
    body = parse_message(msg)
    urls = extract_urls(body[0])
    assert 'http://www.socialservices.cn/detail.php?id=9' in urls
예제 #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')
예제 #4
0
파일: t1.py 프로젝트: aeppert/py-cifsdk
def test_parse_message():
    body = parse_message(msg)
    assert type(body) is list
    assert body[0].startswith(b'Delivered-To: [email protected]')
예제 #5
0
파일: t1.py 프로젝트: aeppert/py-cifsdk
def test_email_urls():
    body = parse_message(msg)
    urls = extract_urls(body[0])
    assert "http://www.socialservices.cn/detail.php?id=9" in urls
예제 #6
0
파일: t1.py 프로젝트: aeppert/py-cifsdk
def test_parse_message():
    body = parse_message(msg)
    assert type(body) is list
    assert body[0].startswith(b"Delivered-To: [email protected]")
예제 #7
0
파일: t2.py 프로젝트: aeppert/py-cifsdk
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
예제 #8
0
파일: t2.py 프로젝트: aeppert/py-cifsdk
def test_parse_message():
    body = parse_message(msg)
    assert type(body) is list
    assert body[0].startswith(b'Received: from ironport.csirtgadgets.org')