8 lignes
233 B
Python
8 lignes
233 B
Python
import pytest
|
|
from mail2sms.text_utils import html_to_sms_text
|
|
|
|
|
|
def test_html_cleaning():
|
|
html = "<h1>Hello</h1><p>World <strong>123</strong></p>"
|
|
result = html_to_sms_text(html)
|
|
assert result == "Hello World 123" |