diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-08-22 20:05:54 +0200 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-08-22 20:25:42 +0200 |
commit | 491d01b7e9e4244ff904af387f97e39b46786b5e (patch) | |
tree | 116ae58f713c8867c2ef67dc2999b9266ab339d5 /tests/m2m_multiple | |
parent | 0eb846605e56044b8f5334a7d735ed744b453c40 (diff) | |
download | django-491d01b7e9e4244ff904af387f97e39b46786b5e.tar.gz |
Tweak some examples.
"Area man/woman" is confusing to people not familiar with the
conventions of American journalism (like me).
Diffstat (limited to 'tests/m2m_multiple')
-rw-r--r-- | tests/m2m_multiple/tests.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/m2m_multiple/tests.py b/tests/m2m_multiple/tests.py index 2122517ce4..9d605423ad 100644 --- a/tests/m2m_multiple/tests.py +++ b/tests/m2m_multiple/tests.py @@ -15,13 +15,13 @@ class M2MMultipleTests(TestCase): ] a1 = Article.objects.create( - headline="Area man steals", pub_date=datetime(2005, 11, 27) + headline="Parrot steals", pub_date=datetime(2005, 11, 27) ) a1.primary_categories.add(c2, c3) a1.secondary_categories.add(c4) a2 = Article.objects.create( - headline="Area man runs", pub_date=datetime(2005, 11, 28) + headline="Parrot runs", pub_date=datetime(2005, 11, 28) ) a2.primary_categories.add(c1, c2) a2.secondary_categories.add(c4) @@ -48,7 +48,7 @@ class M2MMultipleTests(TestCase): ) self.assertQuerysetEqual( c1.primary_article_set.all(), [ - "Area man runs", + "Parrot runs", ], lambda a: a.headline ) @@ -57,8 +57,8 @@ class M2MMultipleTests(TestCase): ) self.assertQuerysetEqual( c2.primary_article_set.all(), [ - "Area man steals", - "Area man runs", + "Parrot steals", + "Parrot runs", ], lambda a: a.headline ) @@ -67,7 +67,7 @@ class M2MMultipleTests(TestCase): ) self.assertQuerysetEqual( c3.primary_article_set.all(), [ - "Area man steals", + "Parrot steals", ], lambda a: a.headline ) @@ -79,8 +79,8 @@ class M2MMultipleTests(TestCase): ) self.assertQuerysetEqual( c4.secondary_article_set.all(), [ - "Area man steals", - "Area man runs", + "Parrot steals", + "Parrot runs", ], lambda a: a.headline ) |