[Checkins] SVN: grok/trunk/src/grok/tests/view/namemultiple test
that you can't call grok.name more than once on a class
Philipp von Weitershausen
philikon at philikon.de
Sun Oct 15 09:12:29 EDT 2006
Log message for revision 70643:
test that you can't call grok.name more than once on a class
Changed:
A grok/trunk/src/grok/tests/view/namemultiple.py
A grok/trunk/src/grok/tests/view/namemultiple_fixture.py
-=-
Added: grok/trunk/src/grok/tests/view/namemultiple.py
===================================================================
--- grok/trunk/src/grok/tests/view/namemultiple.py 2006-10-15 13:02:26 UTC (rev 70642)
+++ grok/trunk/src/grok/tests/view/namemultiple.py 2006-10-15 13:12:28 UTC (rev 70643)
@@ -0,0 +1,9 @@
+"""
+You can't call grok.name multiple times for a view
+
+ >>> import grok.tests.view.namemultiple_fixture
+ Traceback (most recent call last):
+ ...
+ GrokError: grok.name can only be called once per class.
+
+"""
Property changes on: grok/trunk/src/grok/tests/view/namemultiple.py
___________________________________________________________________
Name: svn:eol-style
+ native
Added: grok/trunk/src/grok/tests/view/namemultiple_fixture.py
===================================================================
--- grok/trunk/src/grok/tests/view/namemultiple_fixture.py 2006-10-15 13:02:26 UTC (rev 70642)
+++ grok/trunk/src/grok/tests/view/namemultiple_fixture.py 2006-10-15 13:12:28 UTC (rev 70643)
@@ -0,0 +1,5 @@
+import grok
+
+class MultipleNames(grok.View):
+ grok.name('mammoth')
+ grok.name('bear')
Property changes on: grok/trunk/src/grok/tests/view/namemultiple_fixture.py
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the Checkins
mailing list