From f7969b0920c403118656f6bfec58d6454d79ef1a Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Tue, 28 Oct 2014 12:02:56 +0200 Subject: Fixed #23620 -- Used more specific assertions in the Django test suite. --- tests/foreign_object/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/foreign_object') diff --git a/tests/foreign_object/tests.py b/tests/foreign_object/tests.py index f361c5c8d5..fd34a05013 100644 --- a/tests/foreign_object/tests.py +++ b/tests/foreign_object/tests.py @@ -319,7 +319,7 @@ class MultiColumnFKTests(TestCase): with self.assertNumQueries(1): fetched = Article.objects.select_related('active_translation').get( active_translation__title='Otsikko') - self.assertTrue(fetched.active_translation.title == 'Otsikko') + self.assertEqual(fetched.active_translation.title, 'Otsikko') a2 = Article.objects.create(pub_date=datetime.date.today()) at2_fi = ArticleTranslation(article=a2, lang='fi', title='Atsikko', body='Diipadaapa', abstract='dipad') -- cgit v1.3