diff --git a/django/contrib/messages/tests/test_cookie.py b/django/contrib/messages/tests/test_cookie.py
index 1008263..ba7b4dc 100644
a
|
b
|
class CookieTest(BaseTests, TestCase):
|
65 | 65 | response = self.get_response() |
66 | 66 | storage.add(constants.INFO, 'test') |
67 | 67 | storage.update(response) |
68 | | self.assertTrue('test' in response.cookies['messages'].value) |
| 68 | self.assertIn('test', response.cookies['messages'].value) |
69 | 69 | self.assertEqual(response.cookies['messages']['domain'], '.example.com') |
70 | 70 | self.assertEqual(response.cookies['messages']['expires'], '') |
71 | 71 | self.assertEqual(response.cookies['messages']['secure'], True) |
… |
… |
class CookieTest(BaseTests, TestCase):
|
114 | 114 | self.assertEqual(cookie_storing, 4) |
115 | 115 | |
116 | 116 | self.assertEqual(len(unstored_messages), 1) |
117 | | self.assertTrue(unstored_messages[0].message == '0' * msg_size) |
| 117 | self.assertEqual(unstored_messages[0].message, '0' * msg_size) |
118 | 118 | |
119 | 119 | def test_json_encoder_decoder(self): |
120 | 120 | """ |
diff --git a/tests/foreign_object/tests.py b/tests/foreign_object/tests.py
index f361c5c..fd34a05 100644
a
|
b
|
class MultiColumnFKTests(TestCase):
|
319 | 319 | with self.assertNumQueries(1): |
320 | 320 | fetched = Article.objects.select_related('active_translation').get( |
321 | 321 | active_translation__title='Otsikko') |
322 | | self.assertTrue(fetched.active_translation.title == 'Otsikko') |
| 322 | self.assertEqual(fetched.active_translation.title, 'Otsikko') |
323 | 323 | a2 = Article.objects.create(pub_date=datetime.date.today()) |
324 | 324 | at2_fi = ArticleTranslation(article=a2, lang='fi', title='Atsikko', body='Diipadaapa', |
325 | 325 | abstract='dipad') |
diff --git a/tests/null_fk_ordering/tests.py b/tests/null_fk_ordering/tests.py
index ebbd089..882c4c1 100644
a
|
b
|
class NullFkOrderingTests(TestCase):
|
22 | 22 | # We can't compare results directly (since different databases sort NULLs to |
23 | 23 | # different ends of the ordering), but we can check that all results are |
24 | 24 | # returned. |
25 | | self.assertTrue(len(list(Article.objects.all())) == 3) |
| 25 | self.assertEqual(len(Article.objects.all()), 3) |
26 | 26 | |
27 | 27 | s = SystemInfo.objects.create(system_name='System Info') |
28 | 28 | f = Forum.objects.create(system_info=s, forum_name='First forum') |
… |
… |
class NullFkOrderingTests(TestCase):
|
39 | 39 | # everything else, some sort them afterwards. So we extract the ordered list |
40 | 40 | # and check the length. Before the fix, this list was too short (some values |
41 | 41 | # were omitted). |
42 | | self.assertTrue(len(list(Comment.objects.all())) == 4) |
| 42 | self.assertEqual(len(Comment.objects.all()), 4) |