[Checkins] SVN: grok/branches/sylvain-grokcore-formlib/src/grok/ - Reindent test,

Sylvain Viollon sylvain at infrae.com
Fri Sep 26 07:45:11 EDT 2008


Log message for revision 91508:
  - Reindent test,
  
  - Removed removed directory 'form' from test search.
  
  

Changed:
  U   grok/branches/sylvain-grokcore-formlib/src/grok/ftests/form/form.py
  U   grok/branches/sylvain-grokcore-formlib/src/grok/tests/test_grok.py

-=-
Modified: grok/branches/sylvain-grokcore-formlib/src/grok/ftests/form/form.py
===================================================================
--- grok/branches/sylvain-grokcore-formlib/src/grok/ftests/form/form.py	2008-09-26 11:40:17 UTC (rev 91507)
+++ grok/branches/sylvain-grokcore-formlib/src/grok/ftests/form/form.py	2008-09-26 11:45:11 UTC (rev 91508)
@@ -13,13 +13,13 @@
   >>> browser.handleErrors = False
   >>> browser.open('http://localhost/world/arthur')
   >>> print browser.contents
-  <p>Test display: application http://localhost/world</p>
+  <p> Test display: application http://localhost/world </p>
 
 Same for the edit form::
 
   >>> browser.open('http://localhost/world/arthur/@@edit')
   >>> print browser.contents
-  <p>Test edit: application http://localhost/world</p>
+  <p> Test edit: application http://localhost/world </p>
 
 
 """
@@ -40,11 +40,17 @@
 
     grok.context(Mammoth)
 
-index = grok.PageTemplate('<p>Test display: application <tal:replace tal:replace="view/application_url" /></p>')
+index = grok.PageTemplate("""
+<p>
+   Test display: application <tal:replace tal:replace="view/application_url" />
+</p>""")
 
 
 class Edit(grok.EditForm):
     
     grok.context(Mammoth)
 
-edit = grok.PageTemplate('<p>Test edit: application <tal:replace tal:replace="view/application_url" /></p>')
+edit = grok.PageTemplate("""
+<p>
+   Test edit: application <tal:replace tal:replace="view/application_url" />
+</p>""")

Modified: grok/branches/sylvain-grokcore-formlib/src/grok/tests/test_grok.py
===================================================================
--- grok/branches/sylvain-grokcore-formlib/src/grok/tests/test_grok.py	2008-09-26 11:40:17 UTC (rev 91507)
+++ grok/branches/sylvain-grokcore-formlib/src/grok/tests/test_grok.py	2008-09-26 11:45:11 UTC (rev 91508)
@@ -44,7 +44,7 @@
     suite = unittest.TestSuite()
     for name in ['adapter', 'error', 'event', 'security', 'catalog',
                  'zcml', 'utility', 'xmlrpc', 'json', 'container',
-                 'traversal', 'form', 'grokker', 'directive',
+                 'traversal', 'grokker', 'directive',
                  'baseclass', 'annotation', 'application',
                  'viewlet', 'testsetup', 'conflict', 'order']:
         suite.addTest(suiteFromPackage(name))



More information about the Checkins mailing list