[Zodb-checkins] CVS: StandaloneZODB/BTrees/tests - testSetOps.py:1.2

Jeremy Hylton jeremy@zope.com
Thu, 30 May 2002 17:06:24 -0400


Update of /cvs-repository/StandaloneZODB/BTrees/tests
In directory cvs.zope.org:/tmp/cvs-serv29727

Modified Files:
	testSetOps.py 
Log Message:
It is customary to include an argument list at the end of a def line.

Also:
    - call shuffle correctly.
    - simplify test_suite()


=== StandaloneZODB/BTrees/tests/testSetOps.py 1.1 => 1.2 ===
         self.assertEqual(list(output), range(50000))
 
-    def testLotsOfLittleOnes:
+    def testLotsOfLittleOnes(self):
         from random import shuffle
         N = 5000
         inputs = []
@@ -64,15 +64,13 @@
             base = i * 4 - N
             inputs.append(IISet([base, base+1]))
             inputs.append(IITreeSet([base+2, base+3]))
-        inputs.shuffle()
+        shuffle(inputs)
         output = multiunion(inputs)
         self.assertEqual(len(output), N*4)
         self.assertEqual(list(output), range(-N, 3*N))
 
 def test_suite():
-    alltests = TestSuite((makeSuite(TestMultiUnion, 'test'),
-                        ))
-    return alltests
+    return makeSuite(TestMultiUnion, 'test')
 
 def main():
   TextTestRunner().run(test_suite())