[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/tests/test_tool.py Wrap long lines.

Tres Seaver tseaver at palladion.com
Fri May 15 14:06:28 EDT 2009


Log message for revision 99983:
  Wrap long lines.

Changed:
  U   Products.GenericSetup/trunk/Products/GenericSetup/tests/test_tool.py

-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/tests/test_tool.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/tests/test_tool.py	2009-05-15 17:57:19 UTC (rev 99982)
+++ Products.GenericSetup/trunk/Products/GenericSetup/tests/test_tool.py	2009-05-15 18:06:27 UTC (rev 99983)
@@ -275,13 +275,15 @@
         global _before_import_events
         self.assertEqual( len(_before_import_events), 1)
         self.assertEqual(_before_import_events[0].profile_id, 'snapshot-dummy')
-        self.assertEqual(_before_import_events[0].steps, ['dependable', 'dependent'])
+        self.assertEqual(_before_import_events[0].steps,
+                         ['dependable', 'dependent'])
         self.assertEqual(_before_import_events[0].full_import, False)
 
         global _after_import_events
         self.assertEqual( len(_after_import_events), 1)
         self.assertEqual(_after_import_events[0].profile_id, 'snapshot-dummy')
-        self.assertEqual(_after_import_events[0].steps, ['dependable', 'dependent'])
+        self.assertEqual(_after_import_events[0].steps,
+                         ['dependable', 'dependent'])
         self.assertEqual(_after_import_events[0].full_import, False)
 
     def test_runImportStepFromProfile_skip_dependencies(self):
@@ -428,7 +430,7 @@
         logged = [x for x in tool.objectIds('File') if x.startswith(prefix)]
         self.assertEqual(len(logged), 1)
 
-    def test_runAllImportStepsFromProfile_unicode_profile_id_creates_reports(self):
+    def test_runAllImportStepsFromProfile_unicode_id_creates_reports(self):
 
         TITLE = 'original title'
         PROFILE_ID = u'snapshot-testing'
@@ -462,7 +464,8 @@
         registry.registerStep( 'purging', '1'
                              , _purgeIfRequired )
 
-        result = tool.runAllImportStepsFromProfile( 'snapshot-dummy', purge_old=True )
+        result = tool.runAllImportStepsFromProfile('snapshot-dummy',
+                                                   purge_old=True )
 
         self.assertEqual( len(result['steps']), 6 )
 
@@ -487,7 +490,8 @@
         registry.registerStep( 'purging', '1'
                              , _purgeIfRequired )
 
-        result = tool.runAllImportStepsFromProfile( 'snapshot-dummy', purge_old=False )
+        result = tool.runAllImportStepsFromProfile('snapshot-dummy',
+                                                   purge_old=False )
 
         self.assertEqual( len(result['steps']), 6 )
 
@@ -514,7 +518,8 @@
             _imported.append(context._profile_path)
 
         tool.applyContext=applyContext
-        result = tool.runAllImportStepsFromProfile('profile-other:foo', ignore_dependencies=True)
+        result = tool.runAllImportStepsFromProfile('profile-other:foo',
+                                                   ignore_dependencies=True)
         self.assertEqual(_imported, [self._PROFILE_PATH])
 
     def test_runAllImportStepsFromProfile_with_depends(self):
@@ -789,8 +794,8 @@
         self.assertEqual( info[ 'title' ], 'One Step' )
         self.assertEqual( info[ 'version' ], '1' )
         self.failUnless( 'One small step' in info[ 'description' ] )
-        self.assertEqual( info[ 'handler' ]
-                        , 'Products.GenericSetup.tests.test_registry.ONE_FUNC' )
+        self.assertEqual(info[ 'handler' ],
+                         'Products.GenericSetup.tests.test_registry.ONE_FUNC' )
 
         self.assertEqual( import_registry.getStep( 'one' ), ONE_FUNC )
 
@@ -801,8 +806,8 @@
         self.assertEqual( info[ 'id' ], 'one' )
         self.assertEqual( info[ 'title' ], 'One Step' )
         self.failUnless( 'One small step' in info[ 'description' ] )
-        self.assertEqual( info[ 'handler' ]
-                        , 'Products.GenericSetup.tests.test_registry.ONE_FUNC' )
+        self.assertEqual(info[ 'handler' ],
+                         'Products.GenericSetup.tests.test_registry.ONE_FUNC' )
 
         self.assertEqual( export_registry.getStep( 'one' ), ONE_FUNC )
 
@@ -915,7 +920,8 @@
         # register upgrade step
         from Products.GenericSetup.upgrade import _upgrade_registry
         orig_upgrade_registry = copy.copy(_upgrade_registry._registry)
-        step = UpgradeStep("Upgrade", "GenericSetup:dummy_profile", '*', '1.1', '',
+        step = UpgradeStep("Upgrade",
+                           "GenericSetup:dummy_profile", '*', '1.1', '',
                            dummy_upgrade_handler,
                            None, "1")
         _registerUpgradeStep(step)



More information about the Checkins mailing list