[CMF-checkins] CVS: CMF/CMFDefault/tests - test_utils.py:1.11
Yvo Schubbe
y.2004_ at wcm-solutions.de
Thu Apr 15 08:53:22 EDT 2004
Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv3530/CMFDefault/tests
Modified Files:
test_utils.py
Log Message:
- added a small helper method needed for the OrderSupport UI changes
=== CMF/CMFDefault/tests/test_utils.py 1.10 => 1.11 ===
--- CMF/CMFDefault/tests/test_utils.py:1.10 Mon Dec 1 04:11:17 2003
+++ CMF/CMFDefault/tests/test_utils.py Thu Apr 15 08:52:51 2004
@@ -17,6 +17,7 @@
from Products.CMFDefault.utils import bodyfinder
from Products.CMFDefault.utils import comma_split
from Products.CMFDefault.utils import html_headcheck
+from Products.CMFDefault.utils import html_marshal
from Products.CMFDefault.utils import parseHeadersBody
from Products.CMFDefault.utils import scrubHTML
from Products.CMFDefault.utils import seq_strip
@@ -127,11 +128,16 @@
self.assertEqual( tuplize('list', ['one',' two','three ']), wanted )
self.assertEqual( tuplize('tuple', ('one','two','three')), wanted )
- def test_seq_strip( self ):
+ def test_seq_strip(self):
self.assertEqual( seq_strip(['one ', ' two', ' three ']),
['one','two','three'] )
self.assertEqual( seq_strip(('one ', ' two', ' three ')),
('one','two','three') )
+
+ def test_html_marshal(self):
+ self.assertEqual( html_marshal(foo=1), ( ('foo:int', '1'), ) )
+ self.assertEqual( html_marshal(foo=1, bar='baz >&baz'),
+ ( ('foo:int', '1'), ('bar', 'baz >&baz') ) )
def test_suite():
More information about the CMF-checkins
mailing list