[PATCH 3 of 6 saem_ref] [test] Drop unused assertUnauthorizedRQL function/method

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 8 13:59:01 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1488971022 -3600
#      Wed Mar 08 12:03:42 2017 +0100
# Node ID fbe08b57c477ea2eb0ac547505e6d11d6e06d747
# Parent  8b4757c2658b615299405c00abd0a897a3574b87
[test] Drop unused assertUnauthorizedRQL function/method

diff --git a/test/unittest_schema.py b/test/unittest_schema.py
--- a/test/unittest_schema.py
+++ b/test/unittest_schema.py
@@ -66,15 +66,10 @@ def assertUnauthorized(self, cnx):
         yield cm
         cnx.commit()
     cnx.rollback()
 
 
-def assertUnauthorizedRQL(self, cnx, rql):
-    with assertUnauthorized(self, cnx):
-        cnx.execute(rql)
-
-
 def create_published_agents_panel(cnx):
     for name, kind in (
         (u"Mr Pink", u"person"),
         (u"Adams", u"family"),
         (u"Direction de la communication", u"authority"),
@@ -203,11 +198,10 @@ class SchemaConstraintsTC(CubicWebTC):
             with self.assertValidationError(cnx):
                 jdoe.cw_set(agent_user=user)
 
 
 class AuthorityRecordTC(CubicWebTC):
-    assertUnauthorizedRQL = assertUnauthorizedRQL
 
     def test_fti(self):
         with self.admin_access.repo_cnx() as cnx:
             cnx.create_entity('AgentKind', name=u'Queen')
             agent = testutils.authority_record(cnx, u'Guenievre', kind=u'Queen',


More information about the saem-devel mailing list