Changeset 7046


Ignore:
Timestamp:
8 Nov 2011, 22:19:35 (13 years ago)
Author:
uli
Message:

Turn gentle check into emergency break. As a side effect we get 100%
coverage for authentication module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/authentication.py

    r7044 r7046  
    232232        if ac.state == 'used' and appl_ac != ac.representation:
    233233            return None
    234         if appl_ac is not None and appl_ac != ac.representation:
    235             # This should never happen. It means a catalog error.
    236             return None
     234        # If the following fails we have a catalog error. Bad enough
     235        # to pull emergency break.
     236        assert appl_ac is None or appl_ac == ac.representation
    237237        return ApplicantPrincipalInfo(accesscode)
    238238
Note: See TracChangeset for help on using the changeset viewer.