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
def test_email_urls(): body = parse_message(msg) urls = extract_urls(body[0]) assert 'http://www.socialservices.cn/detail.php?id=9' in urls
def test_parse_message(): body = parse_message(msg) assert type(body) is list assert body[0].startswith(b'Received: from ironport.csirtgadgets.org')
def test_parse_message(): body = parse_message(msg) assert type(body) is list assert body[0].startswith(b'Delivered-To: [email protected]')
def test_email_urls(): body = parse_message(msg) urls = extract_urls(body[0]) assert "http://www.socialservices.cn/detail.php?id=9" in urls
def test_parse_message(): body = parse_message(msg) assert type(body) is list assert body[0].startswith(b"Delivered-To: [email protected]")