'Test the proxy view with a whitelisted URL'

@patch('rss_proxy.views.requests.get')
def test_proxy_with_whitelisted_url(self, mock_requests_get):

    mock_requests_get.return_value = Mock(status_code=200, content=self.rss)
    resp = self.client.get(('%s?url=%s' % (reverse('rss_proxy:proxy'), self.whitelisted_url1)))
    self.assertEqual(resp.status_code, 200)
    self.assertEqual(resp['Content-Type'], 'application/xml')
    self.assertEqual(resp.content, self.rss)
