[KSS-checkins] r41729 - kukit/kss.demo/trunk/kss/demo/tests

nouri at codespeak.net nouri at codespeak.net
Fri Mar 30 18:52:58 CEST 2007


Author: nouri
Date: Fri Mar 30 18:52:56 2007
New Revision: 41729

Modified:
   kukit/kss.demo/trunk/kss/demo/tests/test_azaxview.py
Log:
Add a proper layer for test_azaxview


Modified: kukit/kss.demo/trunk/kss/demo/tests/test_azaxview.py
==============================================================================
--- kukit/kss.demo/trunk/kss/demo/tests/test_azaxview.py	(original)
+++ kukit/kss.demo/trunk/kss/demo/tests/test_azaxview.py	Fri Mar 30 18:52:56 2007
@@ -1,8 +1,7 @@
-# -*- coding: ISO-8859-15 -*-
 # Copyright (c) 2005
 # Authors:
 #   Godefroid Chapelle <gotcha at bubblenet.be>
-#   Tarek Ziadé <tz at nuxeo.com>
+#   Tarek Ziade <tz at nuxeo.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as published
@@ -34,11 +33,15 @@
     from kss.demo.simplecontent import SimpleContent
 
 class AzaxDemoTestCase(AzaxViewTestCase):
-    
+
+    class layer(AzaxViewTestCase.layer):
+        @classmethod
+        def setUp(cls):
+            load_config('meta.zcml', package=kss.demo)
+            load_config('configure.zcml', package=kss.demo)
+
     def afterSetUp(self):
         AzaxViewTestCase.afterSetUp(self)
-        load_config('meta.zcml', package=kss.demo)
-        load_config('configure.zcml', package=kss.demo)
         self.setDebugRequest()
         self.folder._setObject('demo', SimpleContent('Demo', 'Demo'))
         self.view = self.folder.demo.restrictedTraverse('getDivContent')


More information about the Kukit-checkins mailing list