Package repoze :: Package who :: Package tests :: Module test_middleware :: Class TestMiddleware
[hide private]

Class TestMiddleware

source code


Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
_getTargetClass(self) source code
 
_makeOne(self, app=None, identifiers=None, authenticators=None, challengers=None, classifier=None, mdproviders=None, challenge_decider=None, log_stream=None, log_level=None) source code
 
_makeEnviron(self, kw=None) source code
 
test_accepts_logger(self) source code
 
test_identify_success(self) source code
 
test_identify_success_empty_identity(self) source code
 
test_identify_fail(self) source code
 
test_identify_success_skip_noresults(self) source code
 
test_identify_success_multiresults(self) source code
 
test_identify_find_implicit_classifier(self) source code
 
test_identify_find_explicit_classifier(self) source code
 
test_authenticate_success(self) source code
 
test_authenticate_fail(self) source code
 
test_authenticate_success_skip_fail(self) source code
 
test_authenticate_success_multiresult(self) source code
 
test_authenticate_find_implicit_classifier(self) source code
 
test_authenticate_find_explicit_classifier(self) source code
 
test_authenticate_user_null_but_not_none(self) source code
 
test_authenticate_success_multiresult_one_preauthenticated(self) source code
 
test_challenge_noidentifier_noapp(self) source code
 
test_challenge_noidentifier_withapp(self) source code
 
test_challenge_identifier_noapp(self) source code
 
test_challenge_identifier_app(self) source code
 
test_challenge_identifier_forget_headers(self) source code
 
test_multi_challenge_firstwins(self) source code
 
test_multi_challenge_skipnomatch_findimplicit(self) source code
 
test_multi_challenge_skipnomatch_findexplicit(self) source code
 
test_add_metadata(self) source code
 
test_add_metadata_w_classification(self) source code
 
test_call_remoteuser_already_set(self) source code
 
test_call_200_no_plugins(self) source code
 
test_call_401_no_challengers(self) source code
 
test_call_200_no_challengers(self) source code
 
test_call_401_no_identifiers(self) source code
 
test_call_401_challenger_and_identifier_no_authenticator(self) source code
 
test_call_401_challenger_and_identifier_and_authenticator(self) source code
 
test_call_200_challenger_and_identifier_and_authenticator(self) source code
 
test_call_200_identity_reset(self) source code
 
test_call_200_with_metadata(self) source code
 
test_call_ingress_plugin_replaces_application(self) source code
 
test_call_app_doesnt_call_start_response(self) source code

Inherited from unittest.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__