Changeset 5908
- Timestamp:
- 1 Apr 2011, 14:21:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_authentication.py
r5897 r5908 49 49 50 50 class FakeAccessCode(object): 51 def __init__(self, repr, inv_date=None ):51 def __init__(self, repr, inv_date=None, disabled=False): 52 52 self.invalidation_date = inv_date 53 53 self.representation = repr 54 self.disabled = disabled 54 55 55 56 class FakeInvAccessCode(object): … … 87 88 'APP-44444': FakeAccessCode('APP-44444', True), 88 89 'APP-55555': FakeAccessCode('APP-55555', True), 90 'APP-66666': FakeAccessCode('APP-66666', True, False), 91 'APP-77777': FakeAccessCode('APP-77777', False, False), 89 92 }) 90 93 } … … 131 134 result = self.plugin.authenticateCredentials( 132 135 dict(accesscode='APP-55555')) 136 assert result is None 137 138 result = self.plugin.authenticateCredentials( 139 dict(accesscode='APP-66666')) 140 assert result is None 141 142 result = self.plugin.authenticateCredentials( 143 dict(accesscode='APP-77777')) 133 144 assert result is None 134 145 return
Note: See TracChangeset for help on using the changeset viewer.