Author: jmorliaguet
Date: Thu Mar 23 10:04:05 2006
New Revision: 2700

Added:
   cpsskins/branches/jmo-perspectives/tests/test_elements.py   (contents, props 
changed)
Removed:
   cpsskins/branches/jmo-perspectives/tests/test_cell.py
   cpsskins/branches/jmo-perspectives/tests/test_pageblock.py
   cpsskins/branches/jmo-perspectives/tests/test_slot.py
   cpsskins/branches/jmo-perspectives/tests/test_theme.py
   cpsskins/branches/jmo-perspectives/tests/test_themepage.py
Log:

- moved all tests for (theme, themepage, slot, ...) under test_elements.py



Added: cpsskins/branches/jmo-perspectives/tests/test_elements.py
==============================================================================
--- (empty file)
+++ cpsskins/branches/jmo-perspectives/tests/test_elements.py   Thu Mar 23 
10:04:05 2006
@@ -0,0 +1,65 @@
+##############################################################################
+#
+# Copyright (c) 2005 Nuxeo and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Page block tests
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+import unittest
+
+from zope.testing.doctestunit import DocTestSuite
+
+from cpsskins.elements.cell import Cell
+from cpsskins.elements.pageblock import PageBlock
+from cpsskins.elements.slot import Slot
+from cpsskins.elements.theme import Theme
+from cpsskins.elements.themepage import ThemePage
+
+class TestCell:
+    def makeTestObject(self):
+        return Cell()
+
+class TestPageBlock:
+    def makeTestObject(self):
+        return PageBlock()
+
+class TestSlot:
+    def makeTestObject(self):
+        return Slot()
+
+class TestTheme:
+    def makeTestObject(self):
+        return Theme()
+
+class TestThemePage:
+    def makeTestObject(self):
+        return ThemePage()
+
+def test_suite():
+    return unittest.TestSuite((
+        DocTestSuite('cpsskins.elements.cell'),
+        DocTestSuite('cpsskins.elements.pageblock'),
+        DocTestSuite('cpsskins.elements.slot'),
+        DocTestSuite('cpsskins.elements.theme'),
+        DocTestSuite('cpsskins.elements.themepage'),
+        unittest.makeSuite(TestCell),
+        unittest.makeSuite(TestPageBlock),
+        unittest.makeSuite(TestSlot),
+        unittest.makeSuite(TestTheme),
+        unittest.makeSuite(TestThemePage),
+        ))
+
+if __name__ == '__main__':
+    unittest.main(defaultTest='test_suite')
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to