Using TestCase.assertTemplateUsed rather than assertEqual on response.template.name.
Using TestCase.assertTemplateUsed rather than assertEqual on response.template.name.

In a realistic environment, templates will often use inheritance, and so
response.template would be a list, and assertEqual tests wouldn't pass.
Using TestCase.assertTemplateUsed gives the same testing benefits, while
making the tests more likely to work without changes in a real environment.

euanlau/django-betainvite