Hello, In a unit test for django, how would I test if a context variable is set? I tried self.assertTrue('products' in response.context) but it fails even though in my views I set 'products' to be Product.objects.all() and if I pprint response.context I can see that it is set.
Thanks in advance! -Martin Lundberg -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.