title: How to unit test an HTTP delete with Django Rest Framework
body: <p>I have a simple ViewSet to represent a model in my database, defined as such</p>
  
  <pre><code>class EventViewSet(viewsets.ModelViewSet)
  </code></pre>
  
  <p>I have the following code to unit test an HTTP GET request:</p>
  
  <pre><code>    client = APIClient()
      client.credentials(username="test", password="test")
      response = client.get("/api/events/")
      self.assertEqual(response.status_code, 200)
      self.assertEqual(len(response.data), 2)
  </code></pre>
  
  <p>My question is this: How do I make the same type of test, but for HTTP delete?</p>