[Zope-CVS] CVS: Products/CompositePage/tests -
test_composite.py:1.6 test_tool.py:1.4
Sidnei da Silva
sidnei at awkly.org
Mon May 3 12:02:41 EDT 2004
Update of /cvs-repository/Products/CompositePage/tests
In directory cvs.zope.org:/tmp/cvs-serv2612/tests
Modified Files:
test_composite.py test_tool.py
Log Message:
Avoid registering twice. Fix test_suite.
=== Products/CompositePage/tests/test_composite.py 1.5 => 1.6 ===
--- Products/CompositePage/tests/test_composite.py:1.5 Thu Apr 15 18:04:33 2004
+++ Products/CompositePage/tests/test_composite.py Mon May 3 12:02:40 2004
@@ -130,6 +130,10 @@
self.assertRaises(
KeyError, self.composite.getSlotClassName, 'nonexistent_slot')
+def test_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(CompositeTests))
+ return suite
-if __name__ == "__main__":
- unittest.main()
+if __name__ == '__main__':
+ unittest.main(defaultTest='test_suite')
=== Products/CompositePage/tests/test_tool.py 1.3 => 1.4 ===
--- Products/CompositePage/tests/test_tool.py:1.3 Wed Oct 1 16:59:53 2003
+++ Products/CompositePage/tests/test_tool.py Mon May 3 12:02:40 2004
@@ -110,6 +110,11 @@
self.assertEqual(list(self.root.otherslot.objectIds()), [])
-if __name__ == "__main__":
- unittest.main()
+def test_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(ToolTests))
+ return suite
+
+if __name__ == '__main__':
+ unittest.main(defaultTest='test_suite')
More information about the Zope-CVS
mailing list