      def test_post_form_passing_token_auth(self):
          """Ensure POSTing json over token auth with correct credentials passes and does not require CSRF"""
          auth = "Token " + self.key
          response = self.csrf_client.post('/token/', {'example': 'example'}, HTTP_AUTHORIZATION=auth)
          self.assertEqual(response.status_code, 200)
  
      def test_post_json_passing_token_auth(self):
          """Ensure POSTing form over token auth with correct credentials passes and does not require CSRF"""
          auth = "Token " + self.key
          response = self.csrf_client.post('/token/', json.dumps({'example': 'example'}), 'application/json', HTTP_AUTHORIZATION=auth)
 
</s> remove         self.assertEqual(response.status_code, 200)
 </s> add         self.assertEqual(response.status_code, status.HTTP_200_OK) </s> remove         self.assertEqual(response.status_code, 200)
 </s> add         self.assertEqual(response.status_code, status.HTTP_200_OK) </s> remove         self.assertEqual(response.status_code, 401)
 </s> add         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) </s> remove         self.assertEqual(response.status_code, 401)
 </s> add         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) </s> remove         self.assertEqual(response.status_code, 200)
 </s> add         self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
      def test_post_form_passing_token_auth(self):
          """Ensure POSTing json over token auth with correct credentials passes and does not require CSRF"""
          auth = "Token " + self.key
          response = self.csrf_client.post('/token/', {'example': 'example'}, HTTP_AUTHORIZATION=auth)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
  
      def test_post_json_passing_token_auth(self):
          """Ensure POSTing form over token auth with correct credentials passes and does not require CSRF"""
          auth = "Token " + self.key
          response = self.csrf_client.post('/token/', json.dumps({'example': 'example'}), 'application/json', HTTP_AUTHORIZATION=auth)
keep keep keep keep replace keep keep keep keep keep
 Replaced status numbers with the statuses constants from the status model. 
rest_framework/tests/authentication.py