[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py TestCase for the rendering of bytesarea field demonstrating it works with the default display widget. Change as well to unicode the value for the textarea testcase to see th difference

Dmitry Vasiliev lists at hlabs.spb.ru
Tue Jul 26 09:49:40 EDT 2005


Julien Anguenot wrote:
> Log message for revision 37406:
>   TestCase for the rendering of bytesarea field demonstrating it works with the default display widget. Change as well to unicode the value for the textarea testcase to see th difference
> 
> Changed:
>   U   Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py
> 
> -=-
> Modified: Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py
> ===================================================================
[SKIP]
>      # Rendering with the default DisplayWidget for this widget
>      def testRender(self):
> +        value = u"""
> +        texttexttexttexttexttextexttexttexttexttextйййййййййййййййй
> +        texttexttexttexttextteйййййxttexttexttexttexttexttexttextte
> +        texttexttexttexttexttexttexttexttexttexttexttexttexttexttext
> +        """

You need to declare file encoding because the non-ASCII characters.

-- 
Dmitry Vasiliev (dima at hlabs.spb.ru)
     http://hlabs.spb.ru


More information about the Zope3-Checkins mailing list