Commit f7b59256 authored by Vincent Pelletier's avatar Vincent Pelletier

test_PersonLoginCaseSensitive: make sure it's the case which makes test fail.

test_PersonWithLoginWithNotAssignmentAreNotUsers: make sure it's the non-openned assignment which makes the login fail.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20899 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64024ba1
......@@ -152,6 +152,7 @@ class TestUserManagement(ERP5TypeTestCase):
def test_PersonLoginCaseSensitive(self):
"""Login/password are case sensitive."""
p = self._makePerson(reference='the_user', password='secret',)
self._assertUserExists('the_user', 'secret')
self._assertUserDoesNotExists('the_User', 'secret')
def test_PersonLoginNonAscii(self):
......@@ -173,8 +174,8 @@ class TestUserManagement(ERP5TypeTestCase):
def test_PersonWithLoginWithNotAssignmentAreNotUsers(self):
"""Tests a person with a login & password and no assignment open is not a valid user."""
self._makePerson(reference='the_user', open_assignment=0)
self._assertUserDoesNotExists('the_user', None)
self._makePerson(reference='the_user', password='secret', open_assignment=0)
self._assertUserDoesNotExists('the_user', 'secret')
def test_PersonWithSuperUserLoginCannotBeCreated(self):
"""Tests one cannot create person with the "super user" special login."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment