web/test/test_views.py
changeset 4491 a0f48c31b58a
parent 4252 6c4f109c2b03
child 5421 8167de96c523
--- a/web/test/test_views.py	Mon Feb 08 11:08:55 2010 +0100
+++ b/web/test/test_views.py	Mon Feb 08 12:01:15 2010 +0100
@@ -52,7 +52,7 @@
 
     def test_js_added_only_once(self):
         self.vreg._loadedmods[__name__] = {}
-        self.vreg.register_appobject_class(SomeView)
+        self.vreg.register(SomeView)
         rset = self.execute('CWUser X')
         source = self.view('someview', rset).source
         self.assertEquals(source.count('spam.js'), 1)