server/test/unittest_security.py
branchstable
changeset 5886 00a78298d30d
parent 5426 0d4853a6e5ee
child 5888 3ee80d487f11
equal deleted inserted replaced
5885:5d908f1a7659 5886:00a78298d30d
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    14 # details.
    14 # details.
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """functional tests for server'security
    18 """functional tests for server'security"""
    19 """
    19 
    20 import sys
    20 import sys
    21 
    21 
    22 from logilab.common.testlib import unittest_main, TestCase
    22 from logilab.common.testlib import unittest_main, TestCase
    23 from cubicweb.devtools.testlib import CubicWebTC
    23 from cubicweb.devtools.testlib import CubicWebTC
    24 
    24 
   418         x = rset.get_entity(1, 0)
   418         x = rset.get_entity(1, 0)
   419         x.complete()
   419         x.complete()
   420         self.assertEquals(x.login, None)
   420         self.assertEquals(x.login, None)
   421         self.failUnless(x.creation_date)
   421         self.failUnless(x.creation_date)
   422         cnx.rollback()
   422         cnx.rollback()
   423 
       
   424 
   423 
   425 class BaseSchemaSecurityTC(BaseSecurityTC):
   424 class BaseSchemaSecurityTC(BaseSecurityTC):
   426     """tests related to the base schema permission configuration"""
   425     """tests related to the base schema permission configuration"""
   427 
   426 
   428     def test_user_can_delete_object_he_created(self):
   427     def test_user_can_delete_object_he_created(self):