<s> """<STR_LIT>""" <EOL> import unittest <EOL> import warnings <EOL> from werkzeug . testsuite import WerkzeugTestCase <EOL> from werkzeug . wrappers import Response <EOL> from werkzeug . test import create_environ <EOL> class CompatTestCase ( WerkzeugTestCase ) : <EOL> def test_old_imports ( self ) : <EOL> from werkzeug . utils import Headers , MultiDict , CombinedMultiDict , Headers , EnvironHeaders <EOL> from werkzeug . http import Accept , MIMEAccept , CharsetAccept , LanguageAccept , ETags , HeaderSet , WWWAuthenticate , Authorization <EOL> def test_exposed_werkzeug_mod ( self ) : <EOL> import werkzeug <EOL> for key in werkzeug . __all__ : <EOL> if key in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> continue <EOL> getattr ( werkzeug , key ) <EOL> def test_fix_headers_in_response ( self ) : <EOL> for msg in [ '<STR_LIT>' , <EOL> '<STR_LIT>' ] : <EOL> warnings . filterwarnings ( '<STR_LIT:ignore>' , message = msg , <EOL> category = DeprecationWarning ) <EOL> class MyResponse ( Response ) : <EOL> def fix_headers ( self , environ ) : <EOL> Response . fix_headers ( self , environ ) <EOL> self . headers [ '<STR_LIT>' ] = "<STR_LIT>" <EOL> myresp = MyResponse ( '<STR_LIT>' ) <EOL> resp = Response . from_app ( myresp , create_environ ( method = '<STR_LIT:GET>' ) ) <EOL> assert resp . headers [ '<STR_LIT>' ] == '<STR_LIT>' <EOL> assert resp . data == '<STR_LIT>' <EOL> warnings . resetwarnings ( ) <EOL> def suite ( ) : <EOL> suite = unittest . TestSuite ( ) <EOL> suite . addTest ( unittest . makeSuite ( CompatTestCase ) ) <EOL> return suite </s>
