def test_check_wechat_error(self):
        errcode = CONST.NUMBER
        errmsg = CONST.STRING
        data = {
            "errcode": errcode,
            "errmsg": errmsg
        }
        with self.assertRaises(WechatError) as e:
            self.basic._check_wechat_error(data)
        exception = e.exception
        eq_(exception.code, errcode)
        eq_(exception.message, errmsg)
Tests the _check_wechat_error method.
dataset/ETHPy150Open OctavianLee/Pywechat/tests/test_base.py/BasicTest.test_check_wechat_error