'Content-Type of the default error responses is text/html. Refs #20822.'

@ignore_warnings(category=RemovedInDjango30Warning)
def test_default_content_type_is_text_html(self):

    with self.settings(DEFAULT_CONTENT_TYPE='text/xml'):
        response = self.client.get('/raises400/')
        self.assertEqual(response['Content-Type'], 'text/html')
        response = self.client.get('/raises403/')
        self.assertEqual(response['Content-Type'], 'text/html')
        response = self.client.get('/nonexistent_url/')
        self.assertEqual(response['Content-Type'], 'text/html')
        response = self.client.get('/server_error/')
        self.assertEqual(response['Content-Type'], 'text/html')
