test_vipCustomerLoan_list.py 883 Bytes
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import unittest
from  commons import common as com
from commons.MySession import my,hg
from commons.api.hg.loan_vipCustomer.vipCustomerLoan_list import vipCustomerLoan_list
vip=vipCustomerLoan_list()



class test_vipCustomerLoan_list(unittest.TestCase):
    "杭果市场-借款管理-大客户借款"

    @unittest.case_mark(my.mark())  
    def test_vipCustomerLoan_list_01(self):
        "列表查询:客户,卡号和结算日期查输入合法值,查询一条指定数据"
        re=hg.post(url=vip.url,headers=vip.header,json=vip.body)
        print(re.json())
        self.assertEqual(re.status_code, 200)
        self.assertTrue("'特朗普vip'" in str(re.json()).replace(" ",""))


if __name__ == "__main__":

    unittest.main(verbosity=2)

    # com.run_one(test_weightBizBill_listPage("test_weightBizBill_listPage_01"))