Module Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore BinOpMult ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list
N/A N/A json N/A mock N/A unittest nose.tools eq_ ok_ constants CONST pywechat WechatService pywechat.excepts WechatError CodeBuildError pywechat.services.basic Basic TestCase N/A N/A unittest TestCase N/A N/A Creates a TestCase template to help test. setUp N/A N/A self N/A N/A N/A N/A self service N/A WechatService N/A CONST STRING N/A CONST STRING N/A N/A WechatServiceTest N/A TestCase N/A N/A Creates a TestCase for the class of WechatService. test_init_service N/A N/A self N/A N/A N/A Tests the init service method. N/A service_name N/A CONST STRING N/A N/A N/A self assertRaises CodeBuildError e N/A N/A N/A N/A N/A self service init_service service_name N/A N/A N/A N/A mock patch object Basic access_token autospec True N/A N/A N/A N/A N/A self service init_service Shake N/A N/A N/A N/A self service init_service Card N/A N/A BasicTest N/A N/A unittest TestCase N/A N/A Creates a TestCase for the class of Basic. setUp N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object Basic access_token autospec True N/A N/A N/A self basic N/A Basic N/A CONST STRING N/A CONST STRING N/A test_check_wechat_error N/A N/A self N/A N/A N/A Tests the _check_wechat_error method. N/A errcode N/A CONST NUMBER N/A errmsg N/A CONST STRING N/A data N/A errcode errmsg errcode errmsg N/A N/A N/A self assertRaises WechatError e N/A N/A N/A N/A N/A self basic _check_wechat_error data N/A exception N/A e exception N/A N/A eq_ N/A exception code errcode N/A N/A eq_ N/A exception message errmsg N/A test_send_request N/A N/A self N/A N/A N/A Tests the _send_request  method. N/A N/A N/A N/A mock patch object Basic _send_request N/A N/A N/A ok_ N/A N/A N/A self basic _send_request get N/A CONST STRING N/A N/A ok_ N/A N/A N/A self basic _send_request post N/A CONST STRING N/A test_grant_access_token N/A N/A self N/A N/A N/A Tests the _grant_access_token method. N/A N/A N/A N/A mock patch object Basic _send_request mock_method N/A N/A access_token N/A CONST STRING N/A expires_in N/A CONST NUMBER N/A N/A mock_method return_value N/A access_token expires_in access_token expires_in N/A data N/A N/A N/A self basic _grant_access_token N/A N/A eq_ N/A N/A data get access_token access_token N/A N/A eq_ N/A N/A data get expires_in expires_in N/A test_get_wechat_server_ips N/A N/A self N/A N/A N/A Tests the _get_wechat_server_ips method. N/A N/A N/A N/A mock patch object Basic _send_request mock_method N/A N/A N/A N/A N/A mock patch object Basic _grant_access_token method N/A N/A ips N/A N/A N/A CONST STRING N/A CONST NUMBER N/A N/A method return_value N/A CONST STRING N/A N/A mock_method return_value N/A ips ips N/A data N/A N/A N/A self basic _get_wechat_server_ips N/A N/A eq_ N/A N/A data get ips ips N/A N/A