#NEWLINE# def test_create_service( self ) : #NEWLINE# #INDENT# session = boto3 . session . Session ( ) #NEWLINE# request = pretend . stub ( find_service = pretend . call_recorder ( ( lambda name : session ) ) , registry = pretend . stub ( settings = { #NEWLINE# #INDENT# 'files.bucket' : 'froblob' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# storage = S3FileStorage . create_service ( None , request ) #NEWLINE# assert ( request . find_service . calls == [ pretend . call ( name = 'aws.session' ) ] ) #NEWLINE# assert ( storage . bucket . name == 'froblob' )