diff --git a/mysite/fts/test_polls.py b/mysite/fts/test_polls.py index 75b823e..e43b5d7 100644 --- a/mysite/fts/test_polls.py +++ b/mysite/fts/test_polls.py @@ -122,6 +122,7 @@ def test_voting_on_a_new_poll(self): # The page refreshes, and he sees that his choice # has updated the results. they now say # "100 %: very awesome". + self.fail('TODO') # The page also says "1 votes" diff --git a/tutorial04.rst b/tutorial04.rst index 281ca4f..607da11 100644 --- a/tutorial04.rst +++ b/tutorial04.rst @@ -668,15 +668,18 @@ template: -And now... our tests pass!:: +And now... our tests get to the end!:: - . + ====================================================================== + FAIL: test_voting_on_a_new_poll (test_polls.TestPolls) + ---------------------------------------------------------------------- + Traceback (most recent call last): + File "/home/harry/workspace/tddjango_site/source/mysite/fts/test_polls.py", line 125, in test_voting_on_a_new_poll + self.fail('TODO') + AssertionError: TODO ---------------------------------------------------------------------- - Ran 1 test in 16.946s - OK -Well, that's only because we haven't finished writing them really. Tune in -next week for when we finish our tests, handle POST requests, and do super-fun -form validation too... +Tune in next week for when we finish our tests, handle POST requests, and do +super-fun form validation too...