[Zodb-checkins] CVS: Zope3/lib/python/Persistence/BTrees/tests - testBTrees.py:1.1.2.3 testBTreesUnicode.py:1.1.2.4
Guido van Rossum
guido@python.org
Sat, 1 Jun 2002 00:55:00 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees/tests
In directory cvs.zope.org:/tmp/cvs-serv11775
Modified Files:
Tag: Zope-3x-branch
testBTrees.py testBTreesUnicode.py
Log Message:
Tests shouldn't have docstrings.
=== Zope3/lib/python/Persistence/BTrees/tests/testBTrees.py 1.1.2.2 => 1.1.2.3 ===
def testUpdate(self):
- "mapping update"
d={}
l=[]
for i in range(10000):
@@ -331,7 +330,6 @@
self.assertEqual(t.minKey(9) , 10)
def testUpdate(self):
- "mapping update"
d={}
l=[]
for i in range(10000):
@@ -410,7 +408,7 @@
self.assertEqual(diff , [], diff)
def testDeleteTwoChildrenInorderSuccessorWorks(self):
- """ 7, 3, 8, 1, 5, 10, 6, 4 -- del 3 """
+ # 7, 3, 8, 1, 5, 10, 6, 4 -- del 3
self.t[7] = 6
self.t[3] = 10
self.t[8] = 12
@@ -424,7 +422,7 @@
self.assertEqual(diff , [], diff)
def testDeleteRootWorks(self):
- """ 7, 3, 8, 1, 5, 10, 6, 4 -- del 7 """
+ # 7, 3, 8, 1, 5, 10, 6, 4 -- del 7
self.t[7] = 6
self.t[3] = 10
self.t[8] = 12
=== Zope3/lib/python/Persistence/BTrees/tests/testBTreesUnicode.py 1.1.2.3 => 1.1.2.4 ===
def test1(self):
- """ check every item of the tree """
+ # check every item of the tree
for k, v in self.data:
if isinstance(k, types.StringType):
@@ -60,7 +60,7 @@
self.assertEqual(self.tree[key], v)
def test2(self):
- """ try to access unicode keys in tree"""
+ # try to access unicode keys in tree
self.assertEqual(self.data[-1][0], self.s)
self.assertEqual(self.tree[self.data[-1][0]], self.data[-1][1])