<s> from flask import Flask <EOL> class TestCase ( object ) : <EOL> def setup_method ( self , method ) : <EOL> self . app = Flask ( __name__ ) <EOL> self . app . debug = True <EOL> self . app . secret_key = '<STR_LIT>' <EOL> self . _ctx = self . make_test_request_context ( ) <EOL> self . _ctx . push ( ) <EOL> self . client = self . app . test_client ( ) <EOL> def teardown_method ( self , method ) : <EOL> self . _ctx . pop ( ) <EOL> def make_test_request_context ( self ) : <EOL> return self . app . test_request_context ( ) </s>
