I am trying to test my Django views. This view passes a QuerySet to the template:
def merchant_home(request, slug): merchant = Merchant.objects.get(slug=sl
Use assertQuerysetEqual, which is built to compare the two querysets for you. You will need to subclass Django's django.test.TestCase for it to be available in your tests.
django.test.TestCase