summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerHde <admin@herh.de>2015-03-15 15:51:24 +0100
committerTim Graham <timograham@gmail.com>2015-03-16 08:25:03 -0400
commit36fb3b39de312a1283d2d08f1ed3b602c8ca7f84 (patch)
treecf52d4b079a47a1affd58e443164a9f1a71b0ff2
parent2583ee2a7ef18f20e8814c68df45c2021a3aa220 (diff)
[1.7.x] Added missing punctuation in some comments in tutorial 5.
Backport of 39573a11db694a584de6ca2a858fa05ec4ea13e1 from master
-rw-r--r--docs/intro/tutorial05.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt
index 545a84ad80..5b62a7f8ab 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -177,7 +177,7 @@ Put the following in the ``tests.py`` file in the ``polls`` application:
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() should return False for questions whose
- pub_date is in the future
+ pub_date is in the future.
"""
time = timezone.now() + datetime.timedelta(days=30)
future_question = Question(pub_date=time)
@@ -282,7 +282,7 @@ more comprehensively:
def test_was_published_recently_with_old_question(self):
"""
was_published_recently() should return False for questions whose
- pub_date is older than 1 day
+ pub_date is older than 1 day.
"""
time = timezone.now() - datetime.timedelta(days=30)
old_question = Question(pub_date=time)
@@ -291,7 +291,7 @@ more comprehensively:
def test_was_published_recently_with_recent_question(self):
"""
was_published_recently() should return True for questions whose
- pub_date is within the last day
+ pub_date is within the last day.
"""
time = timezone.now() - datetime.timedelta(hours=1)
recent_question = Question(pub_date=time)
@@ -483,7 +483,7 @@ class:
def test_index_view_with_a_past_question(self):
"""
Questions with a pub_date in the past should be displayed on the
- index page
+ index page.
"""
create_question(question_text="Past question.", days=-30)
response = self.client.get(reverse('polls:index'))