def test_037_api_mobile_refresh_verify_code(self): """ Time :2019-06-19 author : 罗林 desc :刷新运营商登录的图片验证码接口 """ CrawleroperatorAction.test_api_mobile_refresh_verify_code(reqid=reqid, token=token)
def test_040_api_mobile_refresh_verify_code_token_error(self): """ Time :2019-06-19 author : 罗林 desc :刷新运营商登录的图片验证码接口 """ rs1 = CrawleroperatorAction.test_api_mobile_refresh_verify_code(reqid=reqid, token='123') Assertion.verity(json.loads(rs1)['code'], 0) Assertion.verity(json.loads(rs1)['retMsg'], 'token错误') Assertion.verityNone(json.loads(rs1)['data'])
def test_038_api_mobile_refresh_verify_code_reqid_none(self): """ Time :2019-06-19 author : 罗林 desc :刷新运营商登录的图片验证码接口 """ rs1 = CrawleroperatorAction.test_api_mobile_refresh_verify_code(reqid='', token=token) Assertion.verity(json.loads(rs1)['code'], 0) Assertion.verity(json.loads(rs1)['retMsg'], 'reqId不能为空') Assertion.verityNone(json.loads(rs1)['data'])