﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33332	Writing your first Django app, part 5 - error please help me.	Seoyule Jo	nobody	"Hi Thank you for the great tutorial.

I'm shadowing this tutorial but keep encountering the following error:
AssertionError: Lists differ: <Question: Past question.>? != [<Question: Past question.>]

**Below is the related code

    def test_past_question(self):
        question = create_question(question_text=""Past question."", days=-30)
        response = self.client.get(reverse('polls:index'))
        self.assertQuerysetEqual(
            response.context['latest_question_list'],
            [question]
        )

** And below is the error message.
======================================================================
FAIL: test_past_question (polls.tests.QuestionIndexViewTests)
======================================================================
Traceback (most recent call last):
  File ""/Users/seoyulejo/projects/mysite3/polls/tests.py"", line 50, in test_past_question
    self.assertQuerysetEqual(
  File ""/Users/seoyulejo/venvs/mysite/lib/python3.8/site-packages/django/test/testcases.py"", line 1052, in assertQuerysetEqual
    return self.assertEqual(list(items), values, msg=msg)
AssertionError: Lists differ: ['<Question: Past question.>'] != [<Question: Past question.>]

First differing element 0:
'<Question: Past question.>'
<Question: Past question.>

- ['<Question: Past question.>']
?  -                          -

+ [<Question: Past question.>]

Could anyone help me find out the reason of the error?

Thank you so much"	Uncategorized	closed	Testing framework	3.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
