Skip to content

Commit

Permalink
finish t4 with TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
hjwp committed Dec 23, 2011
1 parent 40cec88 commit 133891b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions mysite/fts/test_polls.py
Expand Up @@ -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"

Expand Down
17 changes: 10 additions & 7 deletions tutorial04.rst
Expand Up @@ -668,15 +668,18 @@ template:
</html>


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...

0 comments on commit 133891b

Please sign in to comment.