[Checkins] SVN: grok/trunk/src/grok/tests/view/n test that grok.name cannot be called on module level

Philipp von Weitershausen philikon at philikon.de
Sun Oct 15 09:16:36 EDT 2006


Log message for revision 70644:
  test that grok.name cannot be called on module level
  

Changed:
  U   grok/trunk/src/grok/tests/view/namemultiple_fixture.py
  A   grok/trunk/src/grok/tests/view/nomodulename.py
  A   grok/trunk/src/grok/tests/view/nomodulename_fixture.py

-=-
Modified: grok/trunk/src/grok/tests/view/namemultiple_fixture.py
===================================================================
--- grok/trunk/src/grok/tests/view/namemultiple_fixture.py	2006-10-15 13:12:28 UTC (rev 70643)
+++ grok/trunk/src/grok/tests/view/namemultiple_fixture.py	2006-10-15 13:16:36 UTC (rev 70644)
@@ -1,3 +1,6 @@
+"""
+This should fail:
+"""
 import grok
 
 class MultipleNames(grok.View):

Added: grok/trunk/src/grok/tests/view/nomodulename.py
===================================================================
--- grok/trunk/src/grok/tests/view/nomodulename.py	2006-10-15 13:12:28 UTC (rev 70643)
+++ grok/trunk/src/grok/tests/view/nomodulename.py	2006-10-15 13:16:36 UTC (rev 70644)
@@ -0,0 +1,9 @@
+"""
+You can't call grok.name on a module:
+
+  >>> import grok.tests.view.nomodulename_fixture
+  Traceback (most recent call last):
+    ...
+  GrokError: grok.name can only be used on class level.
+
+"""


Property changes on: grok/trunk/src/grok/tests/view/nomodulename.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: grok/trunk/src/grok/tests/view/nomodulename_fixture.py
===================================================================
--- grok/trunk/src/grok/tests/view/nomodulename_fixture.py	2006-10-15 13:12:28 UTC (rev 70643)
+++ grok/trunk/src/grok/tests/view/nomodulename_fixture.py	2006-10-15 13:16:36 UTC (rev 70644)
@@ -0,0 +1,5 @@
+"""
+This should fail:
+"""
+import grok
+grok.name('viewname')


Property changes on: grok/trunk/src/grok/tests/view/nomodulename_fixture.py
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Checkins mailing list