def test_020_api_78dk_app_common_takeGoods_contractuuid_is_not_exist(self): """ Time :2019-08-13 author : 闫红 desc : 确认收货V1.4.0,运营审核前,合同uuid不存在 """ res = AppAction.test_api_78dk_app_perCenter_takeGoods(contractuuid=-1) Assertion.verity(json.loads(res)['code'], '20000')
def test_025_api_78dk_app_perCenter_getTakeGoodsContent_contractuuid_is_not_exist( self): """ Time :2019-08-13 author : 闫红 desc : 获取确认收货协议参数V1.40.合同uuid不存在 """ res = AppAction.test_api_78dk_app_perCenter_takeGoods(contractuuid=-1) Assertion.verity(json.loads(res)['code'], '20000')
def test_023_api_78dk_app_perCenter_getTakeGoodsContent(self): """ Time :2019-08-13 author : 闫红 desc : 获取确认收货协议参数V1.40 """ res = AppAction.test_api_78dk_app_perCenter_takeGoods( contractuuid=loanorderuuid) Assertion.verity(json.loads(res)['code'], '10000')
def test_022_api_78dk_app_common_takeGoods_overlong(self): """ Time :2019-08-13 author : 闫红 desc : 确认收货V1.4.0,运营审核前,合同uuid超长 """ res = AppAction.test_api_78dk_app_perCenter_takeGoods( contractuuid=MD.words_en_lower(256)) Assertion.verity(json.loads(res)['code'], '20000')
def test_021_api_78dk_app_common_takeGoods_contractuuid_is_null(self): """ Time :2019-08-13 author : 闫红 desc : 确认收货V1.4.0,运营审核前,合同uuid为空 """ res = AppAction.test_api_78dk_app_perCenter_takeGoods(contractuuid='') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verityContain(json.loads(res)['msg'], '订单uuid不能为空')
def test_050_api_78dk_app_common_takeGoods(self): """ Time :2019-08-13 author : 闫红 desc : 确认收货V1.4.0,运营审核前收货失败 """ res = AppAction.test_api_78dk_app_perCenter_takeGoods( contractuuid=contract_uuid) Assertion.verity(json.loads(res)['code'], 'S0003') Assertion.verityContain(json.loads(res)['msg'], '无权限操作')
def test_026_api_78dk_app_perCenter_getTakeGoodsContent_contractuuid_overlong( self): """ Time :2019-08-13 author : 闫红 desc : 获取确认收货协议参数V1.40.合同uuid不存在 """ res = AppAction.test_api_78dk_app_perCenter_takeGoods( contractuuid=MD.words_en(256)) Assertion.verity(json.loads(res)['code'], '20000')
def test_024_api_78dk_app_perCenter_getTakeGoodsContent_contractuuid_is_null( self): """ Time :2019-08-13 author : 闫红 desc : 获取确认收货协议参数V1.40.合同uuid为空 """ res = AppAction.test_api_78dk_app_perCenter_takeGoods(contractuuid='') Assertion.verity(json.loads(res)['code'], '20000') Assertion.verity(json.loads(res)['msg'], '订单uuid不能为空!')