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