equal
deleted
inserted
replaced
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): |