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 just had the same problem. The second argument of assertQuerysetEqual needs to be a list of the expected repr()s as strings. Here is an example from the Django test suite:
assertQuerysetEqual
self.assertQuerysetEqual(c1.tags.all(), ["", ""], ordered=False)