def test_submit_nbts(self): ''' 提交宁波通商 ''' business_type = config.business_type['NBTS'][0] submit_result = public.submit(business_type) if submit_result: public.log_record('提交【宁波通商】响应结果', sys._getframe().f_lineno, submit_result) submit_status = submit_result['code'] self.assertEqual(submit_status, '000000') else: public.log_record('提交【宁波通商】失败响应结果', sys._getframe().f_lineno, submit_result)
def test_submit_zljr(self): ''' 提交招联金融 ''' business_type = config.business_type['ZLJR'][0] submit_result = public.submit(business_type) if submit_result: public.log_record('提交【招联金融】响应结果', sys._getframe().f_lineno, submit_result) submit_status = submit_result['code'] self.assertEqual(submit_status, '000000') else: public.log_record('提交【招联金融】失败响应结果', sys._getframe().f_lineno, submit_result)
def test_submit_yyfax(self): ''' 提交友金快贷 ''' business_type = config.business_type['YYFAX'][0] submit_result = public.submit(business_type) if submit_result: public.log_record('提交【友金快贷】响应结果', sys._getframe().f_lineno, submit_result) submit_status = submit_result['code'] self.assertEqual(submit_status, '000000') else: public.log_record('提交【友金快贷】失败响应结果', sys._getframe().f_lineno, submit_result)