def test_charset_del_no_content_type_header(): res = Response() res.headers.pop('Content-Type', None) eq_(res._charset__del(), None)