'Issue #1437
Test we display the headers of the API response and not those from the
HTML response'

def test_contains_headers_of_api_response(self):

    resp = self.client.get(u'/html1')
    self.assertContains(resp, u'>GET,    HEAD,    OPTIONS<')
    self.assertContains(resp, u'>application/json<')
    self.assertNotContains(resp, u'>text/html;    charset=utf-8<')
