[Checkins] SVN: grok/branches/jw-simpler-skin-registration/src/grok/tests/skin/skin_conflict.py Also test conflicts for skin directive

Philipp von Weitershausen philikon at philikon.de
Fri Aug 1 09:08:36 EDT 2008


Log message for revision 89144:
  Also test conflicts for skin directive
  

Changed:
  A   grok/branches/jw-simpler-skin-registration/src/grok/tests/skin/skin_conflict.py

-=-
Copied: grok/branches/jw-simpler-skin-registration/src/grok/tests/skin/skin_conflict.py (from rev 89143, grok/branches/jw-simpler-skin-registration/src/grok/tests/skin/skinclass_conflict.py)
===================================================================
--- grok/branches/jw-simpler-skin-registration/src/grok/tests/skin/skin_conflict.py	                        (rev 0)
+++ grok/branches/jw-simpler-skin-registration/src/grok/tests/skin/skin_conflict.py	2008-08-01 13:08:35 UTC (rev 89144)
@@ -0,0 +1,17 @@
+"""
+We cannot register two skins under the same name::
+
+  >>> grok.testing.grok(__name__)
+  Traceback (most recent call last):
+    ...
+  ConfigurationConflictError: Conflicting configuration actions
+    For: ('utility', <InterfaceClass zope.publisher.interfaces.browser.IBrowserSkinType>, 'foo')
+"""
+
+import grok
+
+class Skin1(grok.IBrowserRequest):
+    grok.skin('foo')
+
+class Skin2(grok.IBrowserRequest):
+    grok.skin('foo')



More information about the Checkins mailing list