Tweak some examples.

"Area man/woman" is confusing to people not familiar with the
conventions of American journalism (like me).
This commit is contained in:
Aymeric Augustin 2015-08-22 20:05:54 +02:00
parent 0eb846605e
commit 491d01b7e9
5 changed files with 29 additions and 29 deletions

View file

@ -15,11 +15,11 @@ class SimpleTests(TestCase):
@skipIf(six.PY3, "tests a __str__ method returning unicode under Python 2")
def test_basic(self):
a = Article.objects.create(
headline=b'Area man programs in Python',
headline=b'Parrot programs in Python',
pub_date=datetime.datetime(2005, 7, 28)
)
self.assertEqual(str(a), str('Area man programs in Python'))
self.assertEqual(repr(a), str('<Article: Area man programs in Python>'))
self.assertEqual(str(a), str('Parrot programs in Python'))
self.assertEqual(repr(a), str('<Article: Parrot programs in Python>'))
def test_international(self):
a = InternationalArticle.objects.create(