def test_04_api_78dk_platform_fund_fundSide_saveFundSide_name_exits(self): # 添加资方 res = PlatformAction.test_api_78dk_platform_fund_fundSide_saveFundSide( FundSidename, 'enabled') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity( json.loads(res)['msg'], '已存在资方名称 [{}],请换个资方名称!'.format(FundSidename))
def test_03_api_78dk_platform_fund_fundSide_saveFundSide(self): """ 添加资方 :return: """ res = PlatformAction.test_api_78dk_platform_fund_fundSide_saveFundSide(name=FundSidename, state='enabled') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')
def test_01_api_78dk_platform_fund_fundSide_saveFundSide_is_none(self): """ 添加资方 ,name为空 :return: """ res = PlatformAction.test_api_78dk_platform_fund_fundSide_saveFundSide(name='', state='enabled') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], 'name不能为空!')
def test_02_api_78dk_platform_fund_fundSide_saveFundSide_256name(self): """ 添加资方 ,name为256 :return: """ res = PlatformAction.test_api_78dk_platform_fund_fundSide_saveFundSide(name=''.join(fake.words(nb=128)), state='enabled') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '插入资方发生失败!')
def test_03_api_78dk_platform_fund_fundSide_saveFundSide(self): # 添加资方 res = PlatformAction.test_api_78dk_platform_fund_fundSide_saveFundSide( FundSidename, 'enabled') Assertion.verity(json.loads(res)['code'], '10000') Assertion.verity(json.loads(res)['msg'], '成功')