mirror of
https://github.com/caronc/apprise.git
synced 2025-08-11 01:04:52 +02:00
escape_html bulletproofing
This commit is contained in:
@ -196,6 +196,11 @@ def test_notify_base():
|
||||
'/path/?name=Dr%20Disrespect', unquote=True) == \
|
||||
['path', '?name=Dr', 'Disrespect']
|
||||
|
||||
# Give nothing, get nothing
|
||||
assert NotifyBase.escape_html("") == ""
|
||||
assert NotifyBase.escape_html(None) == ""
|
||||
assert NotifyBase.escape_html(object()) == ""
|
||||
|
||||
# Test quote
|
||||
assert NotifyBase.unquote('%20') == ' '
|
||||
assert NotifyBase.quote(' ') == '%20'
|
||||
|
Reference in New Issue
Block a user