[Checkins] SVN: grokcore.view/trunk/src/grokcore/view/tests/view/templatedirectorynotfound.py Test missing template directory.

Sylvain Viollow cvs-admin at zope.org
Sun Apr 29 16:38:52 UTC 2012


Log message for revision 125416:
  Test missing template directory.
  

Changed:
  A   grokcore.view/trunk/src/grokcore/view/tests/view/templatedirectorynotfound.py

-=-
Added: grokcore.view/trunk/src/grokcore/view/tests/view/templatedirectorynotfound.py
===================================================================
--- grokcore.view/trunk/src/grokcore/view/tests/view/templatedirectorynotfound.py	                        (rev 0)
+++ grokcore.view/trunk/src/grokcore/view/tests/view/templatedirectorynotfound.py	2012-04-29 16:38:48 UTC (rev 125416)
@@ -0,0 +1,17 @@
+"""
+If the template directory you specify doesn't exist, you have a comprehensible
+error:
+
+  >>> grok.testing.grok(__name__)
+
+"""
+
+import grokcore.view as grok
+
+grok.templatedir('idontexit')
+
+class Mammoth(grok.Context):
+    pass
+
+class Food(grok.View):
+    pass



More information about the checkins mailing list