1from minihtml import safe, text 2 3 4def test_text_is_escaped(): 5 n = text("hi there & goodbye") 6 7 assert str(n) == "hi there & goodbye" 8 9 10def test_safe_text_is_not_escaped(): 11 n = safe("hi there & goodbye") 12 13 assert str(n) == "hi there & goodbye"