[Checkins] SVN: Sandbox/cklinger/megrok.resource/trunk/src/megrok/resource/ftests/test_inclusion.py removing prints

Christian Klinger cklinger at novareto.de
Tue Oct 13 11:43:19 EDT 2009


Log message for revision 105049:
  removing prints

Changed:
  U   Sandbox/cklinger/megrok.resource/trunk/src/megrok/resource/ftests/test_inclusion.py

-=-
Modified: Sandbox/cklinger/megrok.resource/trunk/src/megrok/resource/ftests/test_inclusion.py
===================================================================
--- Sandbox/cklinger/megrok.resource/trunk/src/megrok/resource/ftests/test_inclusion.py	2009-10-13 15:34:53 UTC (rev 105048)
+++ Sandbox/cklinger/megrok.resource/trunk/src/megrok/resource/ftests/test_inclusion.py	2009-10-13 15:43:19 UTC (rev 105049)
@@ -22,6 +22,7 @@
   >>> print browser.contents
   /* Simple JS */ 
 
+
 Inclusion
 ---------
 
@@ -38,8 +39,9 @@
     </body>
   </html>  
 
+
 AdvanceInclusion
-================
+----------------
 
   >>> browser.open('http://localhost/app/advanced')
   >>> print browser.contents
@@ -52,6 +54,12 @@
     <script type="text/javascript" src="http://localhost/app/@@/styles/b.js"></script></body>
   </html>    
 
+
+Include All Inclusions
+----------------------
+
+  >>> browser.open('http://localhost/app/all')
+  >>> print browser.contents
 """
 import grok
 
@@ -66,6 +74,7 @@
     
     inclusion(name='JS', file='a.js')
     inclusion(name='JSBottom', file='b.js', bottom=True)
+    inclusion(name='JSBottom', file='b.js', bottom=True)
 
 
 class Simple(grok.View):
@@ -82,6 +91,14 @@
     template = grok.PageTemplateFile('templates/myview.pt')
 
 
+class All(grok.View):
+    grok.context(Interface)
+    template = grok.PageTemplateFile('templates/myview.pt')
+    include(Styles)
+
+
+
+
 ###TestSetup
 def test_suite():
     from zope.testing import doctest



More information about the checkins mailing list