def test_mailto_replaces_propery_end_of_sentence(addr, app): with app.app_context(): text = 'long sentence with stuff ' + addr + '.' assert addr not in pmailto_all(text)
def test_mailto_replaces_properly_simple(addr, app): with app.app_context(): text = 'some text ' + addr + ' more' assert addr not in pmailto_all(text)