Clarified wording in tutorial text.

This commit is contained in:
Burhanuddin Baharuddin 2018-04-19 17:09:38 +08:00 committed by Carlton Gibson
parent a917a5601f
commit c2598a6f4d
1 changed files with 3 additions and 4 deletions

View File

@ -188,10 +188,9 @@ Put the following in the ``tests.py`` file in the ``polls`` application:
future_question = Question(pub_date=time)
self.assertIs(future_question.was_published_recently(), False)
What we have done here is created a :class:`django.test.TestCase` subclass
with a method that creates a ``Question`` instance with a ``pub_date`` in the
future. We then check the output of ``was_published_recently()`` - which
*ought* to be False.
Here we have created a :class:`django.test.TestCase` subclass with a method that
creates a ``Question`` instance with a ``pub_date`` in the future. We then check
the output of ``was_published_recently()`` - which *ought* to be False.
Running tests
-------------