[Checkins] SVN: Sandbox/cklinger/megrok.ootbviewlets/trunk/ Changed tests to nice html

Christian Klinger cklinger at novareto.de
Wed Apr 1 03:55:06 EDT 2009


Log message for revision 98745:
  Changed tests to nice html

Changed:
  D   Sandbox/cklinger/megrok.ootbviewlets/trunk/.installed.cfg
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_actions.py
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_actions_templates/myview.pt
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem.py
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem_templates/myview.pt
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem_templates/print.pt
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_globalmenuitem.py
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_globalmenuitem_templates/myview.pt
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_tabs.py
  U   Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_tabs_templates/myview.pt

-=-
Deleted: Sandbox/cklinger/megrok.ootbviewlets/trunk/.installed.cfg
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/.installed.cfg	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/.installed.cfg	2009-04-01 07:55:05 UTC (rev 98745)
@@ -1,96 +0,0 @@
-[buildout]
-installed_develop_eggs = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs/megrok.ootbviewlets.egg-link
-parts = python test coverage-test coverage-report
-
-[python]
-__buildout_installed__ = /Users/cklinger/work/hell/megrok.ootbviewlets/bin/python
-__buildout_signature__ = zc.recipe.egg-1.2.2-py2.4.egg setuptools-0.6c9-py2.4.egg zc.buildout-1.2.1-py2.4.egg
-_b = /Users/cklinger/work/hell/megrok.ootbviewlets/bin
-_d = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs
-_e = /Users/cklinger/work/hell/megrok.ootbviewlets/eggs
-bin-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/bin
-develop-eggs-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs
-eggs = megrok.ootbviewlets
-eggs-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/eggs
-executable = /Users/cklinger/work/hell/megrok.ootbviewlets/../bin/python
-interpreter = python
-recipe = zc.recipe.egg
-
-[test]
-__buildout_installed__ = /Users/cklinger/work/hell/megrok.ootbviewlets/parts/test
-	/Users/cklinger/work/hell/megrok.ootbviewlets/bin/test
-__buildout_signature__ = zc.recipe.testrunner-1.0.0-py2.4.egg zc.recipe.egg-1.2.2-py2.4.egg setuptools-0.6c9-py2.4.egg zope.testing-3.5.4-py2.4.egg zc.buildout-1.2.1-py2.4.egg zc.buildout-1.2.1-py2.4.egg
-_b = /Users/cklinger/work/hell/megrok.ootbviewlets/bin
-_d = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs
-_e = /Users/cklinger/work/hell/megrok.ootbviewlets/eggs
-bin-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/bin
-defaults = ['--tests-pattern', '^f?tests$', '-vc']
-develop-eggs-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs
-eggs = megrok.ootbviewlets [test]
-eggs-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/eggs
-executable = /Users/cklinger/work/hell/megrok.ootbviewlets/../bin/python
-location = /Users/cklinger/work/hell/megrok.ootbviewlets/parts/test
-recipe = zc.recipe.testrunner
-script = /Users/cklinger/work/hell/megrok.ootbviewlets/bin/test
-
-[coverage-test]
-__buildout_installed__ = /Users/cklinger/work/hell/megrok.ootbviewlets/parts/coverage-test
-	/Users/cklinger/work/hell/megrok.ootbviewlets/bin/coverage-test
-__buildout_signature__ = zc.recipe.testrunner-1.0.0-py2.4.egg zc.recipe.egg-1.2.2-py2.4.egg setuptools-0.6c9-py2.4.egg zope.testing-3.5.4-py2.4.egg zc.buildout-1.2.1-py2.4.egg zc.buildout-1.2.1-py2.4.egg
-_b = /Users/cklinger/work/hell/megrok.ootbviewlets/bin
-_d = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs
-_e = /Users/cklinger/work/hell/megrok.ootbviewlets/eggs
-bin-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/bin
-defaults = ['--coverage', '/Users/cklinger/work/hell/megrok.ootbviewlets/coverage']
-develop-eggs-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs
-eggs = megrok.ootbviewlets [test]
-eggs-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/eggs
-executable = /Users/cklinger/work/hell/megrok.ootbviewlets/../bin/python
-location = /Users/cklinger/work/hell/megrok.ootbviewlets/parts/coverage-test
-recipe = zc.recipe.testrunner
-script = /Users/cklinger/work/hell/megrok.ootbviewlets/bin/coverage-test
-
-[coverage-report]
-__buildout_installed__ = /Users/cklinger/work/hell/megrok.ootbviewlets/bin/coverage-report
-__buildout_signature__ = zc.recipe.egg-1.2.2-py2.4.egg setuptools-0.6c9-py2.4.egg zc.buildout-1.2.1-py2.4.egg
-_b = /Users/cklinger/work/hell/megrok.ootbviewlets/bin
-_d = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs
-_e = /Users/cklinger/work/hell/megrok.ootbviewlets/eggs
-arguments = ('coverage', '/Users/cklinger/work/hell/megrok.ootbviewlets/coverage/report')
-bin-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/bin
-develop-eggs-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs
-eggs = z3c.coverage
-eggs-directory = /Users/cklinger/work/hell/megrok.ootbviewlets/eggs
-executable = /Users/cklinger/work/hell/megrok.ootbviewlets/../bin/python
-recipe = zc.recipe.egg
-scripts = coverage=coverage-report
-
-[buildout]
-installed_develop_eggs = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs/megrok.ootbviewlets.egg-link
-
-[buildout]
-parts = test coverage-test coverage-report python
-
-[buildout]
-parts = coverage-test coverage-report python test
-
-[buildout]
-parts = coverage-report python test coverage-test
-
-[buildout]
-parts = python test coverage-test coverage-report
-
-[buildout]
-installed_develop_eggs = /Users/cklinger/work/hell/megrok.ootbviewlets/develop-eggs/megrok.ootbviewlets.egg-link
-
-[buildout]
-parts = test coverage-test coverage-report python
-
-[buildout]
-parts = coverage-test coverage-report python test
-
-[buildout]
-parts = coverage-report python test coverage-test
-
-[buildout]
-parts = python test coverage-test coverage-report

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_actions.py
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_actions.py	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_actions.py	2009-04-01 07:55:05 UTC (rev 98745)
@@ -17,6 +17,19 @@
 
   >>> #browser.open("http://localhost/actions/@@myview")
   >>> print browser.contents
+  <div class="actionMenuWrapper">
+    <ul class="actionMenu">
+      <li class="inactive-menu-item">
+    <a href="">
+      <div>print</div>
+    </a>
+  </li>
+  <BLANKLINE>
+    </ul>
+  </div>
+  <div class="clearActionMenu" />
+  <BLANKLINE>
+  <BLANKLINE>
 """
 import grok
 from megrok.ootbviewlets import ActionItem, ActionMenu 
@@ -42,4 +55,3 @@
     suite = doctest.DocTestSuite(optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS|doctest.REPORT_NDIFF)
     suite.layer = FunctionalLayer
     return suite
-

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_actions_templates/myview.pt
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_actions_templates/myview.pt	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_actions_templates/myview.pt	2009-04-01 07:55:05 UTC (rev 98745)
@@ -1 +1 @@
-<span tal:replace="provider:mymanager" />
+<span tal:replace="structure provider:mymanager" />

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem.py
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem.py	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem.py	2009-04-01 07:55:05 UTC (rev 98745)
@@ -18,26 +18,24 @@
 
   >>> browser.open("http://localhost/fred/@@myview")
   >>> print browser.contents
-  &lt;a href="http://localhost/fred/print"
-          class="inactive-menu-item"&gt;printviewlet&lt;/a&gt;
+  <a href="http://localhost/fred/print"
+     class="inactive-menu-item">printviewlet</a>
 
 Now look if we get the right link in the context of klaus too
 
   >>> browser.open("http://localhost/klaus/@@myview")
   >>> print browser.contents
-  &lt;a href="http://localhost/klaus/print"
-          class="inactive-menu-item"&gt;printviewlet&lt;/a&gt;
+  <a href="http://localhost/klaus/print"
+     class="inactive-menu-item">printviewlet</a>
 
-
 Now check if we get the right css class if we had the same url
 endings in our view and the urlEndings in our Viewlet
 
   >>> browser.open("http://localhost/klaus/@@print")
   >>> print browser.contents
-  &lt;a href="http://localhost/klaus/print"
-          class="active-menu-item"&gt;printviewlet&lt;/a&gt;
+  <a href="http://localhost/klaus/print"
+     class="active-menu-item">printviewlet</a>
 
-
 """
 import grok
 from megrok.ootbviewlets import ContextViewlet

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem_templates/myview.pt
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem_templates/myview.pt	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem_templates/myview.pt	2009-04-01 07:55:05 UTC (rev 98745)
@@ -1 +1 @@
-<span tal:replace="provider:mymanager" />
+<span tal:replace="structure provider:mymanager" />

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem_templates/print.pt
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem_templates/print.pt	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_contextmenuitem_templates/print.pt	2009-04-01 07:55:05 UTC (rev 98745)
@@ -1 +1 @@
-<span tal:replace="provider:mymanager" />
+<span tal:replace="structure provider:mymanager" />

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_globalmenuitem.py
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_globalmenuitem.py	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_globalmenuitem.py	2009-04-01 07:55:05 UTC (rev 98745)
@@ -20,13 +20,13 @@
 
   >>> browser.open("http://localhost/app/@@myview")
   >>> print browser.contents
-  &lt;a href="http://localhost/app/logout.html"
-          class="inactive-menu-item"&gt;logoutviewlet&lt;/a&gt;
+  <a href="http://localhost/app/logout.html"
+     class="inactive-menu-item">logoutviewlet</a>
 
   >>> browser.open("http://localhost/app/klaus/@@myview")
   >>> print browser.contents
-  &lt;a href="http://localhost/app/logout.html"
-          class="inactive-menu-item"&gt;logoutviewlet&lt;/a&gt;
+  <a href="http://localhost/app/logout.html"
+     class="inactive-menu-item">logoutviewlet</a>
 
 """
 import grok

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_globalmenuitem_templates/myview.pt
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_globalmenuitem_templates/myview.pt	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_globalmenuitem_templates/myview.pt	2009-04-01 07:55:05 UTC (rev 98745)
@@ -1 +1 @@
-<span tal:replace="provider:mymanager" />
+<span tal:replace="structure provider:mymanager" />

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_tabs.py
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_tabs.py	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_tabs.py	2009-04-01 07:55:05 UTC (rev 98745)
@@ -17,12 +17,12 @@
 
   >>> browser.open("http://localhost/tabs/@@myview")
   >>> print browser.contents
-  &lt;div class="tabMenu"&gt;
-    &lt;span class="inactive-menu-item"&gt;
-    &lt;a href=""&gt;print&lt;/a&gt;
-  &lt;/span&gt;
+  <div class="tabMenu">
+    <span class="inactive-menu-item">
+    <a href="">print</a>
+  </span>
   <BLANKLINE>
-  &lt;/div&gt;
+  </div> 
 """
 import grok
 from megrok.ootbviewlets import TabItem, TabMenu

Modified: Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_tabs_templates/myview.pt
===================================================================
--- Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_tabs_templates/myview.pt	2009-04-01 06:19:02 UTC (rev 98744)
+++ Sandbox/cklinger/megrok.ootbviewlets/trunk/src/megrok/ootbviewlets/tests/test_tabs_templates/myview.pt	2009-04-01 07:55:05 UTC (rev 98745)
@@ -1 +1 @@
-<span tal:replace="provider:mymanager" />
+<span tal:replace="structure provider:mymanager" />



More information about the Checkins mailing list