def index(request):
    """
    returns the top 10 most clicked products
    >>> response = index(REQUEST)
    >>> [test response content here]
    """
products = Product.objects.all()[:10]
Examples of using Doctests in Django in an Agile / BDD way