def test_013_api_mobile_phone_config_phone_none(self): """ Time :2019-06-19 author : 罗林 desc :账号密码登录提交接口 """ rs1 = CrawleroperatorAction.test_api_mobile_phone_config(reqid=reqid, token=token, phone='') Assertion.verity(json.loads(rs1)['code'], 0) Assertion.verity(json.loads(rs1)['retMsg'], 'phone不能为空') Assertion.verityNone(json.loads(rs1)['data'])
def test_005_api_mobile_phone_config(self): """ Time :2019-06-19 author : 罗林 desc :账号密码登录提交接口 """ rs1 = CrawleroperatorAction.test_api_mobile_phone_config(reqid=reqid, token=token, phone=phone) Assertion.verity(json.loads(rs1)['retCode'], 1) Assertion.verity(json.loads(rs1)['retMsg'], '成功') Assertion.verity(json.loads(rs1)['reqId'], reqid)
def test_011_api_mobile_phone_config_token_error(self): """ Time :2019-06-19 author : 罗林 desc :账号密码登录提交接口 """ rs1 = CrawleroperatorAction.test_api_mobile_phone_config(reqid=reqid, token=token + '1', phone=phone) Assertion.verity(json.loads(rs1)['code'], 0) Assertion.verity(json.loads(rs1)['retMsg'], 'token错误') Assertion.verityNone(json.loads(rs1)['data'])