[Answer]-Django View Testing Assertion Error

1👍

Seems like the area context variable is referring to an instance of Area, which is presumably a Django model. You are comparing it with a string. Either call str() explicitly on your context variable, or (preferably) compare with the actual Area object.

Leave a comment