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
I found that using self.assertCountEqual(queryset1, queryset2) also solves the issue.
self.assertCountEqual(queryset1, queryset2)