Beispiel #1
0
def test_basic_escape():
    es = EscapedString('"basic \\""')
    assert es.unescape() == 'basic "'
Beispiel #2
0
def test_hex_escape():
    es = EscapedString('"test \\x27 ok"')
    assert es.unescape() == "test ' ok"