def test_dangerous_sample_payloads(input, expected): assert escape(input) == expected
def test_safe_sample_payloads(input): assert escape(input) == (str(input) if input is not None else '')
def test_safe_nonstr_sample_payloads(input): assert escape(input) == input