fixed bug with static unicode strings and auto escaping
--HG--
branch : trunk
diff --git a/tests/test_security.py b/tests/test_security.py
index 0cacf5f..0da2df2 100644
--- a/tests/test_security.py
+++ b/tests/test_security.py
@@ -113,3 +113,8 @@
assert Markup(Foo()) == '<em>awesome</em>'
assert Markup('<strong>%s</strong>') % Foo() == \
'<strong><em>awesome</em></strong>'
+
+ # escaping and unescaping
+ assert escape('"<>&\'') == '"<>&''
+ assert Markup("<em>Foo & Bar</em>").striptags() == "Foo & Bar"
+ assert Markup("<test>").unescape() == "<test>"