[Zope3-checkins] CVS: Zope3/src/zope/app/container/tests -
test_find.py:1.6
Philipp von Weitershausen
cvs-admin at zope.org
Thu Nov 20 02:27:57 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/container/tests
In directory cvs.zope.org:/tmp/cvs-serv7392/container/tests
Modified Files:
test_find.py
Log Message:
Use bools where appropriate.
=== Zope3/src/zope/app/container/tests/test_find.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/container/tests/test_find.py:1.5 Fri Sep 5 14:43:20 2003
+++ Zope3/src/zope/app/container/tests/test_find.py Thu Nov 20 02:27:56 2003
@@ -55,8 +55,8 @@
def __contains__(self, id):
for object in self._objects:
if object.id == id:
- return 1
- return 0
+ return True
+ return False
def __len__(self):
return len(self._objects)
@@ -71,7 +71,7 @@
if IReadContainer.isImplementedBy(object):
return len(object) == self._count
else:
- return 0
+ return False
class Test(TestCase):
def test_idFind(self):
More information about the Zope3-Checkins
mailing list