def test_06_api_78dk_platform_cm_base_viewChannel_not_exist(self): """ 查询不存在渠道 :return: """ res = WebAction.test_api_78dk_platform_cm_base_viewChannel( str(fake.latitude())) Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_07_api_78dk_platform_cm_base_viewChannel_all(self): """ 查询所有渠道 :return: """ res = WebAction.test_api_78dk_platform_cm_base_viewChannel(channelid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['data']['name'], channelname)
def test_05_api_78dk_platform_cm_base_viewChannel_all(self): """ 查询渠道失败 :return: """ res = WebAction.test_api_78dk_platform_cm_base_viewChannel('') Assertion.verity(json.loads(res)['msg'], '您提交的参数异常') Assertion.verity(json.loads(res)['code'], '20000')