sandiegopython / test-driven-django-development

This repository contains materials for a San Diego Python workshop on learning Django with test inspired development
http://test-driven-django-development.readthedocs.org/
Other
102 stars 35 forks source link

Add Hint after the test_no_entries function... #114

Closed riseriyo closed 9 years ago

riseriyo commented 10 years ago

Reader is encouraged to do the following on their own:

"The easiest way to add this is to use the empty clause. See if you can add this in yourself to make the test pass. What about viewing an individual blog entry?"

Suggestion: Add a Hint for them and let them know that the test_no_entries wording of 'No blog entries yet' must be written exactly as it is written within the empty clause {% empty %}.

Reason: Further down in same section, after reader has added everything up to this part: "We should now have passing tests again." They could get an error (like I did :-) ) because the wording did not match in self.assertContains(response, "No blog entries yet"). In other words, I didn't realize that I had to write the exact/match of words that are in index.html file. Hope this makes sense...