[test] those are rql tests, not cubicweb (and they break with rql 0.31.5). Remove them. stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 14 Mar 2014 10:51:05 +0100
branchstable
changeset 9586 121c88b360d0
parent 9558 1a719ca9c585
child 9587 0f0199948f93
[test] those are rql tests, not cubicweb (and they break with rql 0.31.5). Remove them.
server/test/unittest_security.py
--- a/server/test/unittest_security.py	Wed Feb 19 11:01:19 2014 +0100
+++ b/server/test/unittest_security.py	Fri Mar 14 10:51:05 2014 +0100
@@ -544,25 +544,6 @@
             names = [t for t, in cu.execute('Any N ORDERBY lower(N) WHERE X name N')]
             self.assertEqual(names, sorted(names, key=lambda x: x.lower()))
 
-    def test_restrict_is_instance_ok(self):
-        rset = self.execute('Any X WHERE X is_instance_of BaseTransition')
-        rqlst = rset.syntax_tree()
-        select = rqlst.children[0]
-        x = select.get_selected_variables().next()
-        self.assertRaises(RQLException, select.add_type_restriction,
-                          x.variable, 'CWUser')
-        select.add_type_restriction(x.variable, 'BaseTransition')
-        select.add_type_restriction(x.variable, 'WorkflowTransition')
-        self.assertEqual(rqlst.as_string(), 'Any X WHERE X is_instance_of WorkflowTransition')
-
-    def test_restrict_is_instance_no_supported(self):
-        rset = self.execute('Any X WHERE X is_instance_of IN(CWUser, CWGroup)')
-        rqlst = rset.syntax_tree()
-        select = rqlst.children[0]
-        x = select.get_selected_variables().next()
-        self.assertRaises(NotImplementedError, select.add_type_restriction,
-                          x.variable, 'WorkflowTransition')
-
     def test_in_state_without_update_perm(self):
         """check a user change in_state without having update permission on the
         subject