def METHOD_NAME(small_discography, artist):
    # language=rst
    """
    Let's say we have a simple view to display an album:
    """
    def view_artist(request, artist_name):
        artist = get_object_or_404(Artist, name=artist_name)
        return render(
            request,
            'view_artist.html',
            context={
                'artist': artist,
            },
        )
    # @test
    response = view_artist(req('get'), artist_name=artist.name)
    assert artist.name in response.content.decode()
    show_output(response)
    # @end
    # language=rst
    """
    There's a table in the template for the tracks but it's all manual written `<table>`, `<tr>`, etc tags and so doesn't have sorting, and it's just a lot of code in that template. It would be nicer to use an iommi table! 
    """