def test_049_api_mobile_code_submit_token_none(self): """ Time :2019-06-19 author : 罗林 desc :二次验证码提交接口 """ rs1 = CrawleroperatorAction.test_api_mobile_code_submit(reqid=reqid, code='123', token='') Assertion.verity(json.loads(rs1)['code'], 0) Assertion.verity(json.loads(rs1)['retMsg'], 'token不能为空') Assertion.verityNone(json.loads(rs1)['data'])
def test_045_api_mobile_code_submit_code_error(self): """ Time :2019-06-19 author : 罗林 desc :二次验证码提交接口 """ rs1 = CrawleroperatorAction.test_api_mobile_code_submit(reqid=reqid, code='123', token=token) Assertion.verity(json.loads(rs1)['retCode'], 1) Assertion.verity(json.loads(rs1)['retMsg'], '成功') Assertion.verity(json.loads(rs1)['data']['phaseStatus'], 'IMG_VERIFY_NEW') Assertion.verity(json.loads(rs1)['data']['reqId'], reqid) Assertion.verity(json.loads(rs1)['data']['stage'], 'LOGINED')