Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad Dict Str ListLoad Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str keyword Call NameLoad Dict Str ListLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad Dict Str ListLoad Str Expr Call AttributeLoad NameLoad attr Str Str Call NameLoad Dict Str ListLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str keyword Call NameLoad Dict Str ListLoad Str keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Expr Call NameLoad NameLoad TupleLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Dict Str ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A mock twisted.web.client Agent twisted.web.http_headers Headers treq.test.util TestCase treq.auth _RequestHeaderSettingAgent add_auth UnknownAuthConfig RequestHeaderSettingAgentTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self agent N/A N/A mock Mock Agent N/A test_sets_headers N/A N/A self N/A N/A N/A agent N/A _RequestHeaderSettingAgent N/A self agent N/A Headers N/A X-Test-Header N/A Test-Header-Value N/A N/A N/A agent request method uri N/A N/A N/A N/A N/A self agent request assert_called_once_with method uri headers N/A Headers N/A X-Test-Header N/A Test-Header-Value bodyProducer None N/A test_overrides_per_request_headers N/A N/A self N/A N/A N/A agent N/A _RequestHeaderSettingAgent N/A self agent N/A Headers N/A X-Test-Header N/A Test-Header-Value N/A N/A N/A agent request method uri N/A Headers N/A X-Test-Header N/A Unwanted-Value N/A N/A N/A N/A N/A self agent request assert_called_once_with method uri headers N/A Headers N/A X-Test-Header N/A Test-Header-Value bodyProducer None N/A N/A AddAuthTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self rhsa_patcher N/A N/A mock patch treq.auth._RequestHeaderSettingAgent N/A N/A self _RequestHeaderSettingAgent N/A N/A N/A self rhsa_patcher start N/A N/A N/A self addCleanup N/A N/A self rhsa_patcher stop N/A test_add_basic_auth N/A N/A self N/A N/A N/A agent N/A N/A mock Mock N/A N/A add_auth agent N/A username password N/A N/A N/A N/A self _RequestHeaderSettingAgent assert_called_once_with agent N/A Headers N/A authorization N/A Basic dXNlcm5hbWU6cGFzc3dvcmQ= N/A test_add_basic_auth_huge N/A N/A self N/A N/A N/A agent N/A N/A mock Mock N/A pwd verylongpasswordthatextendsbeyondthepointwheremultiplelinesaregenerated N/A auth Basic dXNlcm5hbWU6dmVyeWxvbmdwYXNzd29yZHRoYXRleHRlbmRzYmV5b25kdGhlcG9pbnR3aGVyZW11bHRpcGxlbGluZXNhcmVnZW5lcmF0ZWQ= N/A N/A add_auth agent N/A username pwd N/A N/A N/A N/A self _RequestHeaderSettingAgent assert_called_once_with agent N/A Headers N/A authorization N/A auth N/A test_add_unknown_auth N/A N/A self N/A N/A N/A agent N/A N/A mock Mock N/A N/A N/A self assertRaises UnknownAuthConfig add_auth agent N/A N/A mock Mock N/A N/A