From f0c06f8ab7904e1fd082f2de57337f6c7e05f177 Mon Sep 17 00:00:00 2001 From: Gregor Gärtner Date: Sat, 24 Sep 2022 11:29:58 +0100 Subject: Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). Co-Authored-By: Michael Howitz --- docs/intro/tutorial05.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/intro/tutorial05.txt') diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt index 4a453a83b6..4431af71ad 100644 --- a/docs/intro/tutorial05.txt +++ b/docs/intro/tutorial05.txt @@ -491,7 +491,7 @@ class: response = self.client.get(reverse('polls:index')) self.assertEqual(response.status_code, 200) self.assertContains(response, "No polls are available.") - self.assertQuerysetEqual(response.context['latest_question_list'], []) + self.assertQuerySetEqual(response.context['latest_question_list'], []) def test_past_question(self): """ @@ -500,7 +500,7 @@ class: """ question = create_question(question_text="Past question.", days=-30) response = self.client.get(reverse('polls:index')) - self.assertQuerysetEqual( + self.assertQuerySetEqual( response.context['latest_question_list'], [question], ) @@ -513,7 +513,7 @@ class: create_question(question_text="Future question.", days=30) response = self.client.get(reverse('polls:index')) self.assertContains(response, "No polls are available.") - self.assertQuerysetEqual(response.context['latest_question_list'], []) + self.assertQuerySetEqual(response.context['latest_question_list'], []) def test_future_question_and_past_question(self): """ @@ -523,7 +523,7 @@ class: question = create_question(question_text="Past question.", days=-30) create_question(question_text="Future question.", days=30) response = self.client.get(reverse('polls:index')) - self.assertQuerysetEqual( + self.assertQuerySetEqual( response.context['latest_question_list'], [question], ) @@ -535,7 +535,7 @@ class: question1 = create_question(question_text="Past question 1.", days=-30) question2 = create_question(question_text="Past question 2.", days=-5) response = self.client.get(reverse('polls:index')) - self.assertQuerysetEqual( + self.assertQuerySetEqual( response.context['latest_question_list'], [question2, question1], ) @@ -551,7 +551,7 @@ repetition out of the process of creating questions. Note that the :class:`django.test.TestCase` class provides some additional assertion methods. In these examples, we use :meth:`~django.test.SimpleTestCase.assertContains()` and -:meth:`~django.test.TransactionTestCase.assertQuerysetEqual()`. +:meth:`~django.test.TransactionTestCase.assertQuerySetEqual()`. In ``test_past_question``, we create a question and verify that it appears in the list. -- cgit v1.3