'Test the proxy view with a whitelisted URL that is not found'

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

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