          assert composed_perm().has_permission(request, None) is True
  
      def test_several_levels(self):
          request = factory.get('/1', format='json')
          request.user = FakeUser(auth=True)
          composed_perm = (
              permissions.IsAuthenticated &
              permissions.IsAuthenticated &
              permissions.IsAuthenticated &
              permissions.IsAuthenticated
 
</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() </s> remove         request.user = FakeUser(auth=False)
 </s> add         request.user = AnonymousUser() </s> remove class PermissionsCompositionTests(TestCase):
 </s> add 
        request.user = self.user
          assert composed_perm().has_permission(request, None) is True
  
      def test_several_levels(self):
          request = factory.get('/1', format='json')
        request.user = self.user
          composed_perm = (
              permissions.IsAuthenticated &
              permissions.IsAuthenticated &
              permissions.IsAuthenticated &
              permissions.IsAuthenticated
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