[test] fix possible views test (closes #2544358) stable cubicweb-version-3.15.8
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 09 Jan 2013 16:04:26 +0100
branchstable
changeset 8641 459d0c48dfaf
parent 8640 d92d75e54ef3
child 8642 4ef457479337
child 8645 310040c668c0
[test] fix possible views test (closes #2544358)
web/test/unittest_viewselector.py
--- a/web/test/unittest_viewselector.py	Wed Jan 09 15:40:41 2013 +0100
+++ b/web/test/unittest_viewselector.py	Wed Jan 09 16:04:26 2013 +0100
@@ -113,8 +113,8 @@
     def test_possible_views_noresult(self):
         req = self.request()
         rset = req.execute('Any X WHERE X eid 999999')
-        self.assertListEqual(self.pviews(req, rset),
-                             [])
+        self.assertListEqual([('jsonexport', json.JsonRsetView)],
+                             self.pviews(req, rset))
 
     def test_possible_views_one_egroup(self):
         req = self.request()