Commits

David Chambers committed 7491b14

Updated `posts` doctests to inspect the correct post, and made the code more pythonic.

  • Participants
  • Parent commits 5d9befb

Comments (0)

Files changed (1)

     
     The posts are returned in list of 3-tuples sorted by their year and month in the form: (year, month, [posts])
     
-    >>> p = posts('mango/examples/')
-    >>> p[0][0] == 2010
+    >>> year, month, these_posts = posts('mango/examples/')[1]
+    >>> year == 2010
     True
-    >>> p[0][1] == 4
+    >>> month == 4
     True
-    >>> p[0][2][0]['html']
+    >>> these_posts[0]['html']
     u"\\n<p>Welcome to Mango. ... <strong>Congratulations!</strong></p>"
     """
     posts = []