[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testAcquire.py:1.3 testAtterItem.py:1.3 testConvenienceFunctions.py:1.5 testEtc.py:1.3 testNamespaceTrversal.py:1.5 testObjectName.py:1.2 testPhysicalLocationAdapters.py:1.3 testPresentation.py:1.3 testSkin.py:1.2
Jeremy Hylton
jeremy@zope.com
Wed, 17 Jul 2002 12:54:51 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv5906/lib/python/Zope/App/Traversing/tests
Modified Files:
testAcquire.py testAtterItem.py testConvenienceFunctions.py
testEtc.py testNamespaceTrversal.py testObjectName.py
testPhysicalLocationAdapters.py testPresentation.py
testSkin.py
Log Message:
Simplify test_suite() implementations when there is only one class.
=== Zope3/lib/python/Zope/App/Traversing/tests/testAcquire.py 1.2 => 1.3 ===
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/App/Traversing/tests/testAtterItem.py 1.2 => 1.3 ===
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py 1.4 => 1.5 ===
self.assertRaises(ValueError, lau, ('foo','bar',''))
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/App/Traversing/tests/testEtc.py 1.2 => 1.3 ===
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/App/Traversing/tests/testNamespaceTrversal.py 1.4 => 1.5 ===
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/App/Traversing/tests/testObjectName.py 1.1 => 1.2 ===
self.assertEqual(adapter(), 'c')
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/App/Traversing/tests/testPhysicalLocationAdapters.py 1.2 => 1.3 ===
self.assertRaises(TypeError, adapter.getPhysicalRoot)
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/App/Traversing/tests/testPresentation.py 1.2 => 1.3 ===
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/App/Traversing/tests/testSkin.py 1.1 => 1.2 ===
self.assertEqual(request.getPresentationSkin(), 'foo')
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')