Ignore:
Timestamp:
4 Jul 2013, 10:45:39 (11 years ago)
Author:
uli
Message:

Let authtenticators give back a reason if login fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.cas/trunk/waeup/cas/tests/test_authenticators.py

    r10394 r10396  
    5151        auth = DummyAuthenticator()
    5252        result1 = auth.check_credentials('bird', 'bebop')
    53         assert result1 is True
     53        assert result1 == (True, '')
    5454        result2 = auth.check_credentials('foo', 'bar')
    55         assert result2 is False
     55        assert result2 == (False, 'Invalid username or password.')
Note: See TracChangeset for help on using the changeset viewer.