'DELETE requests to RetrieveUpdateDestroyAPIView should delete an object.'

def test_delete_instance_view(self):

    request = factory.delete(u'/1')
    with self.assertNumQueries(2):
        response = self.view(request, pk=1).render()
    assert (response.status_code == status.HTTP_204_NO_CONTENT)
    assert (response.content == six.b(u''))
    ids = [obj.id for obj in self.objects.all()]
    assert (ids == [2, 3])
