示例#1
0
文件: tests.py 项目: MinjunHuang/Quan
 def test_get(self):
     headers = {'Authorization': '930b5250fb9e23c32e8b9357d8334aa3e373ff7a'}
     response = requests.get(self.test_url, headers=headers)
     self.assertEqual(response.status_code, 200)
     headers = {'Authorization': '930b5250fb9e23c32e8b9357d8334aa3e373ff71'}
     response = requests.get(self.test_url, headers=headers)
     self.assertEqual(response.status_code, 403)
示例#2
0
文件: tests.py 项目: ryaninhust/Quan
 def test_get(self):
     headers = {'Authorization': '930b5250fb9e23c32e8b9357d8334aa3e373ff7a'}
     response = requests.get(self.test_url, headers=headers)
     self.assertEqual(response.status_code, 200)
     headers = {'Authorization': '930b5250fb9e23c32e8b9357d8334aa3e373ff71'}
     response = requests.get(self.test_url, headers=headers)
     self.assertEqual(response.status_code, 403)
示例#3
0
文件: tests.py 项目: MinjunHuang/Quan
 def test_get(self):
     response = requests.get(self.test_url)
     self.assertEqual(200, response.status_code)
     user_dict = response.json()
     self.assertEqual(user_dict['cell_phone'], '13667148900')
示例#4
0
文件: tests.py 项目: MinjunHuang/Quan
 def test_get(self):
     response = requests.get(self.test_url)
     self.assertEqual(response.status_code, 200)
示例#5
0
文件: tests.py 项目: ryaninhust/Quan
 def test_get(self):
     response = requests.get(self.test_url)
     self.assertEqual(200, response.status_code)
     user_dict = response.json()
     self.assertEqual(user_dict['cell_phone'], '13667148900')
示例#6
0
文件: tests.py 项目: ryaninhust/Quan
 def test_get(self):
     response = requests.get(self.test_url)
     self.assertEqual(response.status_code, 200)