[Zope-Checkins] CVS: Zope3/lib/python/Schema/tests - testBoolField.py:1.3 testConverter.py:1.2 testDictField.py:1.4 testField.py:1.7 testFloatField.py:1.4 testIntField.py:1.3 testListField.py:1.6 testSchema.py:1.7 testStrField.py:1.4 testTupleField.py:1.6
Jeremy Hylton
jeremy@zope.com
Wed, 17 Jul 2002 12:54:45 -0400
Update of /cvs-repository/Zope3/lib/python/Schema/tests
In directory cvs.zope.org:/tmp/cvs-serv5906/lib/python/Schema/tests
Modified Files:
testBoolField.py testConverter.py testDictField.py
testField.py testFloatField.py testIntField.py
testListField.py testSchema.py testStrField.py
testTupleField.py
Log Message:
Simplify test_suite() implementations when there is only one class.
=== Zope3/lib/python/Schema/tests/testBoolField.py 1.2 => 1.3 ===
def test_suite():
- return TestSuite((
- makeSuite(BoolTest),
- ))
+ return makeSuite(BoolTest)
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testConverter.py 1.1 => 1.2 ===
self.assertRaises(ConversionError, combined_converter.convert, 'foo')
def test_suite():
- return TestSuite((
- makeSuite(ConverterTest),
- ))
+ return makeSuite(ConverterTest)
if __name__=='__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testDictField.py 1.3 => 1.4 ===
def test_suite():
- return TestSuite((
- makeSuite(DictTest),
- ))
+ return makeSuite(DictTest)
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testField.py 1.6 => 1.7 ===
def test_suite():
- return TestSuite((
- makeSuite(FieldTest),
- ))
+ return makeSuite(FieldTest)
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testFloatField.py 1.3 => 1.4 ===
def test_suite():
- return TestSuite((
- makeSuite(FloatTest),
- ))
+ return makeSuite(FloatTest)
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testIntField.py 1.2 => 1.3 ===
def test_suite():
- return TestSuite((
- makeSuite(IntTest),
- ))
+ return makeSuite(IntTest)
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testListField.py 1.5 => 1.6 ===
field.validate, [2, ''] )
def test_suite():
- return TestSuite((
- makeSuite(ListTest),
- ))
+ return makeSuite(ListTest)
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testSchema.py 1.6 => 1.7 ===
def test_suite():
- return TestSuite((makeSuite(SchemaTest), ))
+ return makeSuite(SchemaTest)
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testStrField.py 1.3 => 1.4 ===
def test_suite():
- return TestSuite((
- makeSuite(StrTest),
- ))
+ return makeSuite(StrTest)
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Zope3/lib/python/Schema/tests/testTupleField.py 1.5 => 1.6 ===
field.validate, (2, '') )
def test_suite():
- return TestSuite((
- makeSuite(TupleTest),
- ))
+ return makeSuite(TupleTest)
if __name__ == '__main__':
main(defaultTest='test_suite')