<s> try : <EOL> import unittest2 as unittest <EOL> except ImportError : <EOL> import unittest <EOL> import webtest <EOL> from cliquet . tests . support import ( BaseWebTest as CliquetBaseTest , <EOL> get_request_class ) <EOL> from readinglist import API_VERSION <EOL> class BaseWebTest ( CliquetBaseTest ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( BaseWebTest , self ) . __init__ ( * args , ** kwargs ) <EOL> self . storage . initialize_schema ( ) <EOL> def _get_test_app ( self , settings = None ) : <EOL> app = webtest . TestApp ( "<STR_LIT>" , <EOL> relative_to = '<STR_LIT:.>' ) <EOL> app . RequestClass = get_request_class ( API_VERSION ) <EOL> return app </s>
