web/test/test_views.py
changeset 3474 020fc867f7b2
parent 3408 c92170fca813
child 4087 2b8bc4cfd6ee
--- a/web/test/test_views.py	Fri Sep 25 11:27:01 2009 +0200
+++ b/web/test/test_views.py	Fri Sep 25 11:27:26 2009 +0200
@@ -30,8 +30,8 @@
     __regid__ = 'someview'
 
     def call(self):
-        self.req.add_js('spam.js')
-        self.req.add_js('spam.js')
+        self._cw.add_js('spam.js')
+        self._cw.add_js('spam.js')
 
 
 class ManualCubicWebTCs(AutoPopulateTest):