r13331 - ArchGenXML/trunk/src/archgenxml/tests

"Dorneles Tremea" <[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: deo
Date: Tue Dec  7 19:20:40 2010
New Revision: 13331

Modified:
   ArchGenXML/trunk/src/archgenxml/tests/testArcheTypesGenerator.py
   ArchGenXML/trunk/src/archgenxml/tests/testTaggedValueSupport.py
   ArchGenXML/trunk/src/archgenxml/tests/testUMLProfile.py
   ArchGenXML/trunk/src/archgenxml/tests/testUtils.py
Log:
Whitespaces. Move on.

Modified: ArchGenXML/trunk/src/archgenxml/tests/testArcheTypesGenerator.py
==============================================================================
--- ArchGenXML/trunk/src/archgenxml/tests/testArcheTypesGenerator.py	(original)
+++ ArchGenXML/trunk/src/archgenxml/tests/testArcheTypesGenerator.py	Tue Dec  7 19:20:40 2010
@@ -14,32 +14,32 @@
 class TestArchetypesGenerator(unittest.TestCase):
 
     def setUp(self):
-        self.options = {   
-            'detailed_creation_permissions': 1, 
-            'default_class_type': 'content_class', 
-            'force': 1, 
-            'backreferences_support': None, 
-            'unknownTypesAsString': 0, 
-            'generated_date': 0, 
-            'relation_implementation': 'basic', 
-            'generate_packages': None, 
-            'copyright': '', 
-            'outfilename': '', 
-            'manual_code_sections': 1, 
-            'config_file': None, 
-            'version_info': 1, 
-            'pdb_on_exception': 0, 
-            'rcs_id': 0, 
-            'default_interface_type': 'z3', 
-            'module_info_header': 1, 
-            'default_creation_permission': 'Add portal content', 
-            'build_msgcatalog': 1, 
-            'i18n_content_support': '', 
-            'license': 'GPL', 
-            'default_field_generation': 0, 
-            'profile_dir': '', 
-            'strip_html': 0, 
-            'generateActions': 1, 
+        self.options = {
+            'detailed_creation_permissions': 1,
+            'default_class_type': 'content_class',
+            'force': 1,
+            'backreferences_support': None,
+            'unknownTypesAsString': 0,
+            'generated_date': 0,
+            'relation_implementation': 'basic',
+            'generate_packages': None,
+            'copyright': '',
+            'outfilename': '',
+            'manual_code_sections': 1,
+            'config_file': None,
+            'version_info': 1,
+            'pdb_on_exception': 0,
+            'rcs_id': 0,
+            'default_interface_type': 'z3',
+            'module_info_header': 1,
+            'default_creation_permission': 'Add portal content',
+            'build_msgcatalog': 1,
+            'i18n_content_support': '',
+            'license': 'GPL',
+            'default_field_generation': 0,
+            'profile_dir': '',
+            'strip_html': 0,
+            'generateActions': 1,
             'creation_roles': "python:('Manager','Owner')",
             'author': 'Example Author',
             'email': '[email protected]',
@@ -51,8 +51,8 @@
     def test_getHeaderInfo_copyright_info_simple(self):
         """Test the copyright info output."""
         year = time.localtime()[0]
-        expected = 'Copyright (c) %s by %s <%s>' % (year, 
-                                                    self.options['author'], 
+        expected = 'Copyright (c) %s by %s <%s>' % (year,
+                                                    self.options['author'],
                                                     self.options['email'])
 
         generator = ArchetypesGenerator('/dev/null', **self.options)
@@ -85,7 +85,7 @@
     def test_generateModuleInfoHeader(self):
         self.options.update(author='Äöü€')
         generator = ArchetypesGenerator('/dev/null', **self.options)
-        result = generator.generateModuleInfoHeader(self.model)        
+        result = generator.generateModuleInfoHeader(self.model)
         assert u'Copyright (c) 2010 by Äöü€ <[email protected]>' in result
 
 

Modified: ArchGenXML/trunk/src/archgenxml/tests/testTaggedValueSupport.py
==============================================================================
--- ArchGenXML/trunk/src/archgenxml/tests/testTaggedValueSupport.py	(original)
+++ ArchGenXML/trunk/src/archgenxml/tests/testTaggedValueSupport.py	Tue Dec  7 19:20:40 2010
@@ -23,7 +23,7 @@
         """
         localRegistry = TaggedValueRegistry()
         self.assertEquals(len(localRegistry._registry), 0)
-        
+
     def test_addTaggedValue1(self):
         """ Add a simple value, should be placed in the registry
         """
@@ -51,7 +51,7 @@
         """ Return False for unregistered value
         """
         self.assertEquals(False,
-                          self.registry.isRegistered(category='bogus', 
+                          self.registry.isRegistered(category='bogus',
                                                      tagname='beer'))
 
     def test_isRegistered2(self):

Modified: ArchGenXML/trunk/src/archgenxml/tests/testUMLProfile.py
==============================================================================
--- ArchGenXML/trunk/src/archgenxml/tests/testUMLProfile.py	(original)
+++ ArchGenXML/trunk/src/archgenxml/tests/testUMLProfile.py	Tue Dec  7 19:20:40 2010
@@ -32,10 +32,10 @@
         baseprofile.addStereoType('portal_type', ['XMIClass'], murf=1)
         baseprofile.addStereoType('view', ['XMIMethod'])
         self.assertEquals(3, len(baseprofile.getAllStereoTypes()))
-        
+
         archprofile=UMLProfile(baseprofile)
         archprofile.addStereoType('remember', ['XMIClass'])
-    
+
         self.assert_(archprofile.findStereoTypes(entities=['XMIClass']))
         self.assert_(archprofile.findStereoTypes(entities=['XMIMethod']))
         self.assert_(archprofile.findStereoTypes(entities=['XMIClass'], murf=1))

Modified: ArchGenXML/trunk/src/archgenxml/tests/testUtils.py
==============================================================================
--- ArchGenXML/trunk/src/archgenxml/tests/testUtils.py	(original)
+++ ArchGenXML/trunk/src/archgenxml/tests/testUtils.py	Tue Dec  7 19:20:40 2010
@@ -58,7 +58,7 @@
         """
         result = indent('', 0)
         self.assertEquals(result, '')
-    
+
     def test_indentDontBarfOnEmptyStringWhenIndenting(self):
         """ Don't barf on an empty string
         """
@@ -73,7 +73,7 @@
         """
         result = indent(None, 0)
         self.assertEquals(result, '')
-    
+
     def test_IsTGVTrue1(self):
         """ Test if the correct True values are recognised
 

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Archetypes-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/archetypes-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.