def test_14api_78dk_platform_cm_base_viewChannels_all(self): # 渠道列表全部 res = PlatformAction.test_api_78dk_platform_cm_base_viewChannels( pagecurrent=1, name='', pagesize=10) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000') self.assertNotEqual( json.loads(res)['data']['totalCount'], 0, '数量至少大于等于1')
def test_13api_78dk_platform_cm_base_viewChannels(self): # 渠道列表 res = PlatformAction.test_api_78dk_platform_cm_base_viewChannels( pagecurrent=1, name=channelname, pagesize=8) Assertion.verity(json.loads(res)['msg'], '成功') Assertion.verity(json.loads(res)['code'], '10000')