class documentation
class CheckersMixin: (source)
Known subclasses: twisted.cred.test.test_cred.HashlessFilePasswordDBCheckerTests
, twisted.cred.test.test_cred.LocallyHashedFilePasswordDBCheckerTests
, twisted.cred.test.test_cred.NetworkHashedFilePasswordDBCheckerTests
unittest.TestCase
mixin for testing that some checkers accept and deny specified credentials.
Subclasses must provide
- getCheckers which returns a sequence of
checkers.ICredentialChecker
- getGoodCredentials which returns a list of 2-tuples of credential to check and avaterId to expect.
- getBadCredentials which returns a list of credentials which are expected to be unauthorized.
Method | test |
The given credentials are rejected by all the checkers. |
Method | test |
The given credentials are accepted by all the checkers, and give the expected avatarIDs |