'PUT requests to RetrieveUpdateDestroyAPIView should return 404 if
an object does not currently exist.'

def test_put_to_deleted_instance(self):

    self.objects.get(id=1).delete()
    data = {u'text': u'foobar'}
    request = factory.put(u'/1', data, format=u'json')
    with self.assertNumQueries(1):
        response = self.view(request, pk=1).render()
    assert (response.status_code == status.HTTP_404_NOT_FOUND)
