<s> from pyswagger import SwaggerApp <EOL> from pyswagger . getter import UrlGetter <EOL> from . utils import get_test_data_folder <EOL> import unittest <EOL> import os <EOL> class GetterTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_random_name_v2_0 ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> path = get_test_data_folder ( <EOL> version = '<STR_LIT>' , <EOL> which = '<STR_LIT>' <EOL> ) <EOL> path = os . path . join ( path , '<STR_LIT>' ) <EOL> app = SwaggerApp . create ( path ) <EOL> def test_random_name_v1_2 ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> path = get_test_data_folder ( <EOL> version = '<STR_LIT>' , <EOL> which = '<STR_LIT>' <EOL> ) <EOL> path = os . path . join ( path , '<STR_LIT>' ) <EOL> app = SwaggerApp . create ( path ) <EOL> def test_local_path_with_custome_getter ( self ) : <EOL> """<STR_LIT>""" <EOL> cls = UrlGetter <EOL> path = get_test_data_folder ( <EOL> version = '<STR_LIT>' , <EOL> which = '<STR_LIT>' <EOL> ) <EOL> path = os . path . join ( path , '<STR_LIT>' ) <EOL> app = SwaggerApp . load ( path , getter = cls ) </s>
