--- a/server/test/unittest_fti.py Fri Jul 02 19:14:48 2010 +0200
+++ b/server/test/unittest_fti.py Mon Jul 05 12:04:32 2010 +0200
@@ -2,7 +2,7 @@
from cubicweb.devtools import ApptestConfiguration
from cubicweb.devtools.testlib import CubicWebTC
-from cubicweb.selectors import implements
+from cubicweb.selectors import is_instance
from cubicweb.entities.adapters import IFTIndexableAdapter
class PostgresFTITC(CubicWebTC):
@@ -23,7 +23,7 @@
def test_attr_weight(self):
class CardIFTIndexableAdapter(IFTIndexableAdapter):
- __select__ = implements('Card')
+ __select__ = is_instance('Card')
attr_weight = {'title': 'A'}
with self.temporary_appobjects(CardIFTIndexableAdapter):
req = self.request()
@@ -40,7 +40,7 @@
def test_entity_weight(self):
class PersonneIFTIndexableAdapter(IFTIndexableAdapter):
- __select__ = implements('Personne')
+ __select__ = is_instance('Personne')
entity_weight = 2.0
with self.temporary_appobjects(PersonneIFTIndexableAdapter):
req = self.request()