[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture/tests - testNextService.py:1.3 testProvideFactory.py:1.3 testServiceManagerContainer.py:1.5 testUtilityService.py:1.2 testViewDefinitions.py:1.3
Jeremy Hylton
jeremy@zope.com
Wed, 17 Jul 2002 12:54:52 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture/tests
In directory cvs.zope.org:/tmp/cvs-serv5906/lib/python/Zope/ComponentArchitecture/tests
Modified Files:
testNextService.py testProvideFactory.py
testServiceManagerContainer.py testUtilityService.py
testViewDefinitions.py
Log Message:
Simplify test_suite() implementations when there is only one class.
=== Zope3/lib/python/Zope/ComponentArchitecture/tests/testNextService.py 1.2 => 1.3 ===
self.assertEqual(queryNextService(None, 'x', 1), 1)
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/ComponentArchitecture/tests/testProvideFactory.py 1.2 => 1.3 ===
def test_suite():
- return TestSuite((
- makeSuite(ProvideFactoryTestCase),
- ))
+ return makeSuite(ProvideFactoryTestCase)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/ComponentArchitecture/tests/testServiceManagerContainer.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/ComponentArchitecture/tests/testUtilityService.py 1.1 => 1.2 ===
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Zope/ComponentArchitecture/tests/testViewDefinitions.py 1.2 => 1.3 ===
def test_suite():
- return TestSuite((
- makeSuite(Test),
- ))
+ return makeSuite(Test)
if __name__=='__main__':
main(defaultTest='test_suite')