Esempio n. 1
0
def test_unescape_fails(bad):
    with pytest.raises(pointer.InvalidJSONPointer):
        pointer.unescape(bad)
Esempio n. 2
0
def test_unescape_succeeds(ok, expected):
    assert pointer.unescape(ok) == expected
    assert pointer.unescape(ok * 10) == expected * 10