  from django.contrib.auth.models import Group, Permission, User
  from django.db import models
  from django.test import TestCase
  from django.urls import ResolverMatch
  from django.utils.deprecation import CallableBool
  
  from rest_framework import (
      HTTP_HEADER_ENCODING, authentication, generics, permissions, serializers,
      status, views
  )
 
</s> remove from django.contrib.auth.models import Group, Permission, User
 </s> add from django.contrib.auth.models import AnonymousUser, Group, Permission, User </s> remove         request.user = FakeUser(auth=True)
 </s> add         request.user = self.user </s> remove         request.user = FakeUser(auth=True)
 </s> add         request.user = self.user </s> remove         request.user = FakeUser(auth=False)
 </s> add         request.user = AnonymousUser()
  from django.contrib.auth.models import Group, Permission, User
  from django.db import models
  from django.test import TestCase
  from django.urls import ResolverMatch

  
  from rest_framework import (
      HTTP_HEADER_ENCODING, authentication, generics, permissions, serializers,
      status, views
  )
keep keep keep keep replace keep keep keep keep keep
 use actual user instead of fake user in permission composition test 
tests/test_permissions.py