예제 #1
0
def test_dangerous_sample_payloads(input, expected):
    assert escape(input) == expected
예제 #2
0
def test_safe_sample_payloads(input):
    assert escape(input) == (str(input) if input is not None else '')
예제 #3
0
def test_safe_nonstr_sample_payloads(input):
    assert escape(input) == input