

def test_constructor_headerlist_has_already_content_type(self):
    response = Response()
    response.add_header('Content-Type', 'application/json')
    expected_content_type = ('Content-Type', 'application/json')
    self.assertIn(expected_content_type, response.headerlist)
    expected_content_type = ('Content-Type', 'text/html; charset=UTF-8')
    self.assertNotIn(expected_content_type, response.headerlist)

dataset/ETHPy150Open c-bata/kobin/tests/test_environs.py ResponseTests.test_constructor_headerlist_has_already_content_type/original