验证系统中提供的api接口中访问对应微信api接口
时地址是否正确,参数是否正确
"""

__author__ = 'chuter'

import unittest
import json

if __name__ == '__main__':
    import sys
    sys.path.insert(0, '../../')
    sys.path.insert(0, '../')

from test import test_env_with_db as test_env
test_env.init()

import api_settings
import weixin_api
import weixin_error_codes as errorcodes

from weixin.user.models import WeixinMpUser, WeixinMpUserAccessToken
from new_weixin_api import *
#from custom_message import TextCustomMessage, build_custom_message_json_str

fake_response_json_str = '{"errcode":0, "errmsg":""}'


class GetMemberGroupIdApiTestCase(unittest.TestCase):
    dummy_access_token_str = 'khb3suQHanISYvmZL_IsrS63p6QrbnPL1liw4cO3g08ub0XVU_r6zwc8T-56EAOJ'
Пример #2
0
def init_handler_test_env():
	test_env.init()