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

@override_settings(DEFAULT_CONTENT_TYPE=u'text/xml')
def test_default_content_type_is_text_html(self):

    response = self.client.get(u'/views/raises400/')
    self.assertEqual(response[u'Content-Type'], u'text/html')
    response = self.client.get(u'/views/raises403/')
    self.assertEqual(response[u'Content-Type'], u'text/html')
    response = self.client.get(u'/views/non_existing_url/')
    self.assertEqual(response[u'Content-Type'], u'text/html')
    response = self.client.get(u'/views/server_error/')
    self.assertEqual(response[u'Content-Type'], u'text/html')
