def test_03api_78dk_platform_cm_base_viewChannel_all(self): # 查询渠道 res = PlatformAction.test_api_78dk_platform_cm_base_viewChannel( self.channelid) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['data']['name'], channelname)
def test_04api_78dk_platform_cm_base_viewChannel_not_exist(self): # 查询不存在渠道 res = PlatformAction.test_api_78dk_platform_cm_base_viewChannel( '111111111111111111111111111') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')