<s> import fixtures <EOL> IDENTITY_URL = '<STR_LIT>' <EOL> VOLUME_URL = '<STR_LIT>' <EOL> class Fixture ( fixtures . Fixture ) : <EOL> base_url = None <EOL> json_headers = { '<STR_LIT:Content-Type>' : '<STR_LIT:application/json>' } <EOL> def __init__ ( self , requests , <EOL> volume_url = VOLUME_URL , <EOL> identity_url = IDENTITY_URL ) : <EOL> super ( Fixture , self ) . __init__ ( ) <EOL> self . requests = requests <EOL> self . volume_url = volume_url <EOL> self . identity_url = identity_url <EOL> def url ( self , * args ) : <EOL> url_args = [ self . volume_url ] <EOL> if self . base_url : <EOL> url_args . append ( self . base_url ) <EOL> return '<STR_LIT:/>' . join ( str ( a ) . strip ( '<STR_LIT:/>' ) for a in tuple ( url_args ) + args ) </s>
