Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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')
Example #4
0
 def test_get(self):
     response = requests.get(self.test_url)
     self.assertEqual(response.status_code, 200)
Example #5
0
 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')
Example #6
0
 def test_get(self):
     response = requests.get(self.test_url)
     self.assertEqual(response.status_code, 200)