          response = self.csrf_client.post('/session/', {'example': 'example'})
          assert response.status_code == status.HTTP_403_FORBIDDEN
  
  
  class BaseTokenAuthTests(object):
      """Token authentication"""
      model = None
      path = None
      header_prefix = 'Token '
  
 
</s> remove         class DummyView(object):
 </s> add         class DummyView: </s> remove         class DummyView(object):
 </s> add         class DummyView: </s> remove         request = factory.patch('/{0}'.format(obj.pk), {'number_value': 101}, format='json')
 </s> add         request = factory.patch('/{}'.format(obj.pk), {'number_value': 101}, format='json') </s> remove         assert response.content == six.b('')
 </s> add         assert response.content == b'' </s> remove             path = urlparse.urlparse(link.url).path
 </s> add             path = parse.urlparse(link.url).path
class BaseTokenAuthTests:
          response = self.csrf_client.post('/session/', {'example': 'example'})
          assert response.status_code == status.HTTP_403_FORBIDDEN
  
  
class BaseTokenAuthTests:
      """Token authentication"""
      model = None
      path = None
      header_prefix = 'Token '
  
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/authentication/test_authentication.py