[Zope3-checkins] CVS: Zope3/src/zope/app/container/tests - test_btree.py:1.1 test_icontainer.py:1.9

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Mar 17 11:38:43 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/container/tests
In directory cvs.zope.org:/tmp/cvs-serv3432/src/zope/app/container/tests

Modified Files:
	test_icontainer.py 
Added Files:
	test_btree.py 
Log Message:
Fixed issue 134. Added BTreeContainer tests.


=== Added File Zope3/src/zope/app/container/tests/test_btree.py ===
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""BTree Container Tests

$Id: test_btree.py,v 1.1 2004/03/17 16:38:12 srichter Exp $
"""
from unittest import TestCase, main, makeSuite, TestSuite
from zope.testing.doctestunit import DocTestSuite
from zope.app.tests.placelesssetup import setUp, tearDown
from test_icontainer import TestSampleContainer

class TestBTreeContainer(TestSampleContainer, TestCase):

    def makeTestObject(self):
        from zope.app.container.btree import BTreeContainer
        return BTreeContainer()


def test_suite():
    return TestSuite((
        makeSuite(TestBTreeContainer),
        DocTestSuite('zope.app.container.btree',
                     setUp=setUp, tearDown=tearDown),
        ))

if __name__=='__main__':
    main(defaultTest='test_suite')


=== Zope3/src/zope/app/container/tests/test_icontainer.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/container/tests/test_icontainer.py:1.8	Mon Mar  8 18:35:04 2004
+++ Zope3/src/zope/app/container/tests/test_icontainer.py	Wed Mar 17 11:38:12 2004
@@ -296,7 +296,7 @@
         self.failIf(name3 in folder)
 
 
-class Test(BaseTestIContainer, TestCase):
+class TestSampleContainer(BaseTestIContainer, TestCase):
 
     def makeTestObject(self):
         from zope.app.container.sample import SampleContainer
@@ -312,7 +312,7 @@
         return [None, ['foo'], 1, '\xf3abc']
 
 def test_suite():
-    return makeSuite(Test)
+    return makeSuite(TestSampleContainer)
 
 if __name__=='__main__':
     main(defaultTest='test_suite')




More information about the Zope3-Checkins mailing list