async def METHOD_NAME(cleanup):
    async with database:
        guido = await Author.objects.create(first_name="Guido", last_name="Van Rossum")
        post = await Post.objects.create(title="Hello, M2M", author=guido)
        news = await Category.objects.create(name="News")
        await post.categories.add(news)
        post_categories = await post.categories.all()
        assert len(post_categories) == 1
        assert "posts" not in post.dict().get("categories", [])[0]
        assert news == await post.categories.get(name="News")
        posts_about_python = await Post.objects.filter(categories__name="python").all()
        assert len(posts_about_python) == 0
        # relation not in dict
        category = (
            await Category.objects.select_related("posts")
            .filter(posts__author=guido)
            .get()
        )
        assert category == news
        assert "posts" not in category.dict()
        # relation not in json
        category2 = (
            await Category.objects.select_related("posts")
            .filter(posts__author__first_name="Guido")
            .get()
        )
        assert category2 == news
        assert "posts" not in category2.json()
        assert "posts" not in Category.schema().get("properties")