Kaydet (Commit) c2598a6f authored tarafından Burhanuddin Baharuddin's avatar Burhanuddin Baharuddin Kaydeden (comit) Carlton Gibson

Clarified wording in tutorial text.

üst a917a560
...@@ -188,10 +188,9 @@ Put the following in the ``tests.py`` file in the ``polls`` application: ...@@ -188,10 +188,9 @@ Put the following in the ``tests.py`` file in the ``polls`` application:
future_question = Question(pub_date=time) future_question = Question(pub_date=time)
self.assertIs(future_question.was_published_recently(), False) self.assertIs(future_question.was_published_recently(), False)
What we have done here is created a :class:`django.test.TestCase` subclass Here we have created a :class:`django.test.TestCase` subclass with a method that
with a method that creates a ``Question`` instance with a ``pub_date`` in the creates a ``Question`` instance with a ``pub_date`` in the future. We then check
future. We then check the output of ``was_published_recently()`` - which the output of ``was_published_recently()`` - which *ought* to be False.
*ought* to be False.
Running tests Running tests
------------- -------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment