[Zodb-checkins] CVS: Zope3/src/persistence/tests - test_list.py:1.3
Marius Gedminas
marius at pov.lt
Thu Oct 9 15:02:12 EDT 2003
Update of /cvs-repository/Zope3/src/persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv14578/tests
Modified Files:
test_list.py
Log Message:
Fixed PersistentList __iadd__ and __imul__
=== Zope3/src/persistence/tests/test_list.py 1.2 => 1.3 ===
--- Zope3/src/persistence/tests/test_list.py:1.2 Wed Dec 25 09:12:13 2002
+++ Zope3/src/persistence/tests/test_list.py Thu Oct 9 15:02:10 2003
@@ -210,6 +210,16 @@
u.extend(u2)
eq(u, u1 + u2, "u == u1 + u2")
+ # Test iadd
+ u = u1[:]
+ u += u2
+ eq(u, u1 + u2, "u == u1 + u2")
+
+ # Test imul
+ u = u1[:]
+ u *= 3
+ eq(u, u1 + u1 + u1, "u == u1 + u1 + u1")
+
def test_suite():
return unittest.makeSuite(TestPList)
More information about the Zodb-checkins
mailing list