updat etest tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 00:55:13 +0100
branchtls-sprint
changeset 740 e92c19eaf63f
parent 739 39721e56b56d
child 741 8c810ee593a3
updat etest
test/unittest_vregistry.py
--- 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'])