def METHOD_NAME():
    artist = Artist.objects.create(pk=3, name='Black Sabbath')
    from iommi import Page
    view = Page(parts__foo__children__text=lambda params, **_: str(params.artist)).as_view()
    with register_path_decoding(artist_pk=Artist):
        actual = view(req('get'), artist_pk=str(artist.pk), pass_through=7)
    assert 'Black Sabbath' in actual.content.decode()