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