          """
          Ensure POSTing form over session authentication without logged in user fails.
          """
          response = self.csrf_client.post('/session/', {'example': 'example'})
          self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
  
  
  class BaseTokenAuthTests(object):
      """Token authentication"""
      model = None
 
</s> remove         self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
 </s> add         assert response.status_code == status.HTTP_403_FORBIDDEN </s> remove         self.assertEqual(response.status_code, status.HTTP_200_OK)
 </s> add         assert response.status_code == status.HTTP_200_OK </s> remove         self.assertEqual(response.status_code, status.HTTP_200_OK)
 </s> add         assert response.status_code == status.HTTP_200_OK </s> remove         self.assertContains(
            response, '<label for="id_username">Username:</label>'
        )
 </s> add         assert '<label for="id_username">Username:</label>' in response </s> remove         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
 </s> add         assert response.status_code == status.HTTP_401_UNAUTHORIZED
        assert response.status_code == status.HTTP_403_FORBIDDEN
          """
          Ensure POSTing form over session authentication without logged in user fails.
          """
          response = self.csrf_client.post('/session/', {'example': 'example'})
        assert response.status_code == status.HTTP_403_FORBIDDEN
  
  
  class BaseTokenAuthTests(object):
      """Token authentication"""
      model = None
keep keep keep keep replace keep keep keep keep keep
 converted authentication_test asserts to pytest 
tests/test_authentication.py