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)
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')
def test_get(self): response = requests.get(self.test_url) self.assertEqual(response.status_code, 200)