test/unittest_vregistry.py
branchtls-sprint
changeset 740 e92c19eaf63f
parent 633 087e3f1e87c8
child 747 af9c15653ea9
--- a/test/unittest_vregistry.py	Wed Feb 18 00:48:24 2009 +0100
+++ b/test/unittest_vregistry.py	Wed Feb 18 00:55:13 2009 +0100
@@ -33,12 +33,13 @@
         # check loading baseviews after idownloadable isn't kicking interface based views
         self.assertEquals(len(self.vreg['views']['primary']), 2)
                               
-    def test_autoselectors(self):
+    def test___selectors__compat(self):
         myselector1 = lambda *args: 1
         myselector2 = lambda *args: 1
         class AnAppObject(VObject):
             __selectors__ = (myselector1, myselector2)
-        self.assertEquals(AnAppObject.__select__(), 2)
+        AnAppObject.build___select__()
+        self.assertEquals(AnAppObject.__select__(AnAppObject), 2)
 
     def test_properties(self):
         self.failIf('system.version.cubicweb' in self.vreg['propertydefs'])