title: Django Rest test not giving XML as response but json
body: <p>This is my view</p>
  
  <pre><code>from rest_framework_xml.renderers import XMLRenderer
  
  @api_view(['GET', 'PUT', 'POST'])
  @renderer_classes((XMLRenderer,))
  @permission_classes((AllowAny,))
  def users(request, id, format=None):
      serializer = MySerializer(model,  context={'request': request})
      return Response(serializer.data)
  </code></pre>
  
  <p>If i visit the URL by browser then i get XML as response in chrome as desired.</p>
  
  <p>But in my tests</p>
  
  <pre><code>url = reverse('user-detail', kwargs={
      'id': 10,
  })
  response = self.client.get(url)
  result = response.data
  </code></pre>
  
  <p>I get the result as dictionary . I mean the result which i get before passing to XMLRender.</p>
  
  <p>I don't know if thats the desired behaviour but how can test the xml response</p>