jeudi 5 février 2015

Django View Testing Assertion Error

I am testing my Django view:



self.assertEqual(response.context['area'], '<Area: a>')


And I am getting the following error:



AssertionError: <Area: a> != '<Area: a>'


What type is the part in angle brackets? What do I need to compare to?


Aucun commentaire:

Enregistrer un commentaire