Module ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list Call NameLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str decorator_list
N/A mock MagicMock patch jumpgate.common.exceptions Unauthorized InvalidTokenError jumpgate.identity.drivers.sl.tokens NoAuthDriver SLAuthDriver TokensV2 FakeTokenIdDriver N/A unittest TestNoAuthDriver N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self creds N/A MagicMock N/A N/A self instance N/A NoAuthDriver N/A test_authenticate N/A N/A self mockSLClient N/A N/A N/A mockAccount N/A MagicMock N/A N/A N/A mockAccount getCurrentUser return_value testuser N/A N/A mockSLClient return_value N/A Account mockAccount N/A result N/A N/A N/A self instance authenticate N/A self creds N/A N/A N/A self assertEquals N/A result N/A user testuser N/A N/A patch SoftLayer.Client N/A TestFakeTokenIdDriver N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self token_id N/A MagicMock N/A N/A self instance N/A FakeTokenIdDriver N/A test_invalid_auth_driver N/A N/A self mockIdentity N/A N/A N/A N/A N/A mockIdentity auth_driver return_value N/A SLAuthDriver N/A N/A N/A self assertRaises InvalidTokenError N/A N/A N/A N/A N/A self instance token_from_id N/A self token_id N/A N/A patch jumpgate.identity.drivers.core test_auth_failed N/A N/A self mockIdentity mockNoAuthDriver N/A N/A N/A N/A N/A mockIdentity auth_driver return_value mockNoAuthDriver N/A N/A N/A mockNoAuthDriver authenticate return_value None N/A N/A N/A self assertRaises Unauthorized N/A N/A N/A N/A N/A self instance token_from_id N/A self token_id N/A N/A patch jumpgate.identity.drivers.core N/A patch jumpgate.identity.drivers.sl.tokens.NoAuthDriver N/A