Permalink
Browse files

finish t4 with TODO

  • Loading branch information...
1 parent 40cec88 commit 133891b73215028488147d0611bc72ff0260abdb @hjwp committed Dec 23, 2011
Showing with 11 additions and 7 deletions.
  1. +1 −0 mysite/fts/test_polls.py
  2. +10 −7 tutorial04.rst
View
@@ -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"
View
@@ -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.