I\'m having trouble testing a ViewSet:
class ViewSetTest(TestCase): def test_view_set(self): factory = APIRequestFactory() view = CatViewSet.
I found a way to do this without needing to manually create the right viewset and give it an action mapping:
from django.core.urlresolvers import reverse, resolve ... url = reverse('cat-list') req = factory.get(url) view = resolve(url).func response = view(req) response.render()