async def test_sync_and_async_and(self, authenticated_request, admin_request):
        """Test AND operator with sync and async permissions"""
        sync_perm = permissions.IsAuthenticated()
        async_perm = permissions.IsAdminUser()

        # IsAuthenticated & IsAdminUser
        combined = sync_perm & async_perm

        # Anonymous user - should fail first check
        anon_user = Mock(is_authenticated=False)
        anon_request = Mock(user=anon_user)
        assert await combined.has_permission_async(anon_request, None) is False

        # Authenticated non-admin - should pass first check, fail second
        assert await combined.has_permission_async(authenticated_request, None) is False

        # Admin user - should pass both checks
        assert await combined.has_permission_async(admin_request, None) is True
Test AND operator with sync and async permissions
tests/test_async_permissions.py