feedback_order_settlement_query.py
848 Bytes
import unittest
import urllib3
from commons.MySession import my,sy1
from commons.api.feedback_order_settlement_query import feedback_order_settlement_query
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
fosq = feedback_order_settlement_query()
class test_feedback_order_settlement_query(unittest.TestCase):
"结账管理列表查询"
@classmethod
def setUpClass(cls):
pass
def test_feedback_order_settlement_query_01(self):
print(fosq.url)
re = sy1.post(url = fosq.url, data = fosq.body.encode('utf-8'),headers = fosq.header,proxies=my.myproxies)
print(re.headers)
print(re.json())
self.assertTrue("新爱心园婚介所的总公司" in str(re.json()))
@classmethod
def tearDownClass(cls):
pass
if __name__ == '__main__':
unittest.main()