'GET requests to RetrieveUpdateDestroyAPIView should raise 404 when model filtered out.'

def test_get_instance_view_filters_out_name_with_filter_backend(self):

    instance_view = InstanceView.as_view(filter_backends=(ExclusiveFilterBackend,))
    request = factory.get(u'/1')
    response = instance_view(request, pk=1).render()
    assert (response.status_code == status.HTTP_404_NOT_FOUND)
    assert (response.data == {u'detail': u'Not    found.'})
