class documentation

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_negative The given credentials are rejected by all the checkers.
Method test_positive The given credentials are accepted by all the checkers, and give the expected avatarIDs
@defer.inlineCallbacks
def test_negative(self): (source)

The given credentials are rejected by all the checkers.

@defer.inlineCallbacks
def test_positive(self): (source)

The given credentials are accepted by all the checkers, and give the expected avatarIDs