[CMF-checkins] CVS: CMF/CMFSetup/tests - test_typeinfo.py:1.16

Florent Guillaume fg at nuxeo.com
Fri Jun 10 13:59:14 EDT 2005


Update of /cvs-repository/CMF/CMFSetup/tests
In directory cvs.zope.org:/tmp/cvs-serv27655/tests

Modified Files:
	test_typeinfo.py 
Log Message:
Split typeinfo tests into Import and Export version.


=== CMF/CMFSetup/tests/test_typeinfo.py 1.15 => 1.16 ===
--- CMF/CMFSetup/tests/test_typeinfo.py:1.15	Fri Jun 10 12:08:21 2005
+++ CMF/CMFSetup/tests/test_typeinfo.py	Fri Jun 10 13:59:13 2005
@@ -72,12 +72,13 @@
         self.root.site.portal_types = DummyTypesTool(type_infos)
         return self.root.site
 
-class TypesToolConfiguratorTests(_TypeInfoSetup):
+
+class TypesToolExportConfiguratorTests(_TypeInfoSetup):
 
     def _getTargetClass(self):
 
-        from Products.CMFSetup.typeinfo import TypesToolConfigurator
-        return TypesToolConfigurator
+        from Products.CMFSetup.typeinfo import TypesToolExportConfigurator
+        return TypesToolExportConfigurator
 
     def test_listTypeInfo_empty(self):
 
@@ -139,6 +140,14 @@
         configurator = self._makeOne(site).__of__(site)
         self._compareDOM(configurator.generateXML(), _FILENAME_EXPORT)
 
+
+class TypesToolImportConfiguratorTests(_TypeInfoSetup):
+
+    def _getTargetClass(self):
+
+        from Products.CMFSetup.typeinfo import TypesToolImportConfigurator
+        return TypesToolImportConfigurator
+
     def test_parseXML_empty(self):
 
         site = self._initSite()
@@ -178,12 +187,12 @@
         self.assertEqual(type_info['filename'], 'types/bar_object.xml')
 
 
-class TypeInfoConfiguratorTests(_TypeInfoSetup):
+class TypeInfoExportConfiguratorTests(_TypeInfoSetup):
 
     def _getTargetClass(self):
 
-        from Products.CMFSetup.typeinfo import TypeInfoConfigurator
-        return TypeInfoConfigurator
+        from Products.CMFSetup.typeinfo import TypeInfoExportConfigurator
+        return TypeInfoExportConfigurator
 
     def test_getTypeInfo_nonesuch(self):
 
@@ -285,6 +294,14 @@
         self._compareDOM(configurator.generateXML(type_id='bar'),
                          _BAR_EXPORT % 'bar')
 
+
+class TypeInfoImportConfiguratorTests(_TypeInfoSetup):
+
+    def _getTargetClass(self):
+
+        from Products.CMFSetup.typeinfo import TypeInfoImportConfigurator
+        return TypeInfoImportConfigurator
+
     def test_parseXML_FTI(self):
 
         site = self._initSite()
@@ -736,8 +753,10 @@
 
 def test_suite():
     return unittest.TestSuite((
-        unittest.makeSuite(TypesToolConfiguratorTests),
-        unittest.makeSuite(TypeInfoConfiguratorTests),
+        unittest.makeSuite(TypesToolExportConfiguratorTests),
+        unittest.makeSuite(TypesToolImportConfiguratorTests),
+        unittest.makeSuite(TypeInfoExportConfiguratorTests),
+        unittest.makeSuite(TypeInfoImportConfiguratorTests),
         unittest.makeSuite(Test_exportTypesTool),
         unittest.makeSuite(Test_importTypesTool),
        ))



More information about the CMF-checkins mailing list