[Zope3-checkins] CVS: Zope3/src/zope/app/container - ordered.py:1.5

Garrett Smith garrett@mojave-corp.com
Fri, 1 Aug 2003 15:56:54 -0400


Update of /cvs-repository/Zope3/src/zope/app/container
In directory cvs.zope.org:/tmp/cvs-serv1514/src/zope/app/container

Modified Files:
	ordered.py 
Log Message:
Added missing test.


=== Zope3/src/zope/app/container/ordered.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/container/ordered.py:1.4	Fri Aug  1 15:46:46 2003
+++ Zope3/src/zope/app/container/ordered.py	Fri Aug  1 15:56:49 2003
@@ -242,6 +242,9 @@
         >>> oc.updateOrder(['baz', 'zork', 'foo'])
         >>> oc.keys()
         ['baz', 'zork', 'foo']
+        >>> oc.updateOrder(('zork', 'foo', 'baz'))
+        >>> oc.keys()
+        ['zork', 'foo', 'baz']
         >>> oc.updateOrder(['baz', 'zork'])
         Traceback (most recent call last):
         ...
@@ -273,7 +276,6 @@
             not isinstance(order, TupleType):
             raise TypeError('order must be a tuple or a list.')
 
-        order = list(order)
         if len(order) != len(self._order):
             raise ValueError("Incompatible key set.")