devtools/test/data/views.py
changeset 5877 0c7b7b76a84f
parent 5424 8ecbcbff9777
child 8190 2a3c1b787688
--- a/devtools/test/data/views.py	Fri Jul 02 19:14:48 2010 +0200
+++ b/devtools/test/data/views.py	Mon Jul 05 12:04:32 2010 +0200
@@ -15,12 +15,10 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""only for unit tests !
-
-"""
+"""only for unit tests !"""
 
 from cubicweb.view import EntityView
-from cubicweb.selectors import implements
+from cubicweb.selectors import is_instance
 
 HTML_PAGE = u"""<html>
   <body>
@@ -31,7 +29,7 @@
 
 class SimpleView(EntityView):
     __regid__ = 'simple'
-    __select__ = implements('Bug',)
+    __select__ = is_instance('Bug',)
 
     def call(self, **kwargs):
         self.cell_call(0, 0)
@@ -41,7 +39,7 @@
 
 class RaisingView(EntityView):
     __regid__ = 'raising'
-    __select__ = implements('Bug',)
+    __select__ = is_instance('Bug',)
 
     def cell_call(self, row, col):
         raise ValueError()