test_vipCustomerLoan_details.py
947 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_details import vipCustomerLoan_details
vip=vipCustomerLoan_details()
class test_vipCustomerLoan_details(unittest.TestCase):
"杭果市场-借款管理-大客户借款"
@unittest.case_mark(my.mark())
def test_vipCustomerLoan_details_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("'操作成功'" in str(re.json()).replace(" ",""))
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"))