feedback_customer_query.py 773 Bytes
import unittest
import urllib3
from commons.MySession import my,sy1
from commons.api.feedback_customer_query import feedback_customer_query
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
fcq = feedback_customer_query()

class test_feedback_customer_query(unittest.TestCase):
    "返还人列表查询"
    @classmethod
    def setUpClass(cls):
        pass

    def test_feedback_customer_query_01(self):
        print(fcq.url)
        re = sy1.post(url = fcq.url, data = fcq.body.encode('utf-8'),headers = fcq.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()