Unverified Commit 57f45efb authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Fix doctest

parent 088842cd
...@@ -10,6 +10,10 @@ class StaticViewSitemap(sitemaps.Sitemap): ...@@ -10,6 +10,10 @@ class StaticViewSitemap(sitemaps.Sitemap):
""" """
The items of the site map. The items of the site map.
>>> sitemap = StaticViewSitemap()
>>> sitemap.items()[0]
'index'
:return: the items in the site map :return: the items in the site map
:rtype: [str] :rtype: [str]
""" """
...@@ -28,7 +32,8 @@ class StaticViewSitemap(sitemaps.Sitemap): ...@@ -28,7 +32,8 @@ class StaticViewSitemap(sitemaps.Sitemap):
Example:: Example::
>>> sitemap = StaticViewSitemap() >>> sitemap = StaticViewSitemap()
>>> sitemap.location(sitemap.items()[0]) >>> sitemap.location('index')
'/'
:param obj: the item to reverse. :param obj: the item to reverse.
:type obj: str :type obj: str
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment