Example #1
0
 def test_password_retains_when_login_twice(self):
     with mock.patch('lizard_auth_client.client._do_post', return_value={
             'success': True,
             'user': {'username': '******',
                      'first_name': 'Willie',
                      'last_name': 'Wortel',
                      'email': '*****@*****.**',
                      'is_active': True,
                      'is_staff': False,
                      'is_superuser': False}}):
         user = client.sso_populate_user_django('root')
         password = user.password
         user = client.sso_populate_user_django('root')
         self.assertEqual(user.password, password)
Example #2
0
 def unknown_user():
     return client.sso_populate_user_django('non_existing_username')