예제 #1
0
def test_restore_tags(input):
    r = Richtypo()
    r.text = input

    r.strip_tags()
    r.restore_tags()
    assert r.text == input
예제 #2
0
def test_strip_tags_when_input_already_contains_richtypo_marks(input, expected):
    r = Richtypo()
    r.text = input
    r.strip_tags()
    r.restore_tags()
    assert r.text == expected