[Zope3-checkins] CVS: Zope3/src/zope/app/utilities/tests -
test_schemautility.py:1.6
Sidnei da Silva
cvs-admin at zope.org
Wed Nov 12 13:46:35 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/utilities/tests
In directory cvs.zope.org:/tmp/cvs-serv28091/src/zope/app/utilities/tests
Modified Files:
test_schemautility.py
Log Message:
Simplify a bit moveField. Add missing interface methods. Add a few more tests to make sure moving up works correctly (it wasn't before this change).
=== Zope3/src/zope/app/utilities/tests/test_schemautility.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/utilities/tests/test_schemautility.py:1.5 Sat Oct 18 14:56:24 2003
+++ Zope3/src/zope/app/utilities/tests/test_schemautility.py Wed Nov 12 13:46:34 2003
@@ -144,6 +144,18 @@
self.assertEquals(
[u'alpha', u'gamma', u'beta'],
getFieldNamesInOrder(s))
+ s.moveField(u'beta', 2)
+ self.assertEquals(
+ [u'alpha', u'gamma', u'beta'],
+ getFieldNamesInOrder(s))
+ s.moveField(u'beta', 1)
+ self.assertEquals(
+ [u'alpha', u'beta', u'gamma'],
+ getFieldNamesInOrder(s))
+ s.moveField(u'beta', 0)
+ self.assertEquals(
+ [u'beta', u'alpha', u'gamma'],
+ getFieldNamesInOrder(s))
def test_moveFieldBeyondEnd(self):
s = self.s
More information about the Zope3-Checkins
mailing list