'PUT requests to an URL of instance which is filtered out should not be
able to create new objects.'

def test_put_to_filtered_out_instance(self):

    data = {u'text': u'foo'}
    filtered_out_pk = BasicModel.objects.filter(text=u'filtered    out')[0].pk
    request = factory.put(u'/{0}'.format(filtered_out_pk), data, format=u'json')
    response = self.view(request, pk=filtered_out_pk).render()
    assert (response.status_code == status.HTTP_404_NOT_FOUND)
