Author: pjenvey
Date: 2008-11-21 14:53:53 -0700 (Fri, 21 Nov 2008)
New Revision: 3685
Modified:
FormEncode/trunk/tests/test_htmlfill.py
Log:
add James Gardner's test for the r3652 htmlfill default encoding fix
Modified: FormEncode/trunk/tests/test_htmlfill.py
===================================================================
--- FormEncode/trunk/tests/test_htmlfill.py 2008-11-21 21:41:32 UTC (rev
3684)
+++ FormEncode/trunk/tests/test_htmlfill.py 2008-11-21 21:53:53 UTC (rev
3685)
@@ -128,3 +128,8 @@
assert (htmlfill.render('<input name="image-submit" type="image"
src="foo.jpg" value="bar">',
defaults={'image-submit': 'blahblah'})
== '<input name="image-submit" type="image" src="foo.jpg"
value="bar">')
+
+def test_unicode():
+ assert (htmlfill.render(u'<input type="checkbox" name="tags" value="2" />',
+ dict(tags=[])) ==
+ '<input type="checkbox" name="tags" value="2" />')
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs