#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( GlanceImageServiceTest , self ) . setUp ( ) #NEWLINE# self . stubs = stubout . StubOutForTesting ( ) #NEWLINE# fakes . stub_out_glance ( self . stubs ) #NEWLINE# fakes . stub_out_compute_api_snapshot ( self . stubs ) #NEWLINE# service_class = 'nova.image.glance.GlanceImageService' #NEWLINE# self . service = utils . import_object ( service_class ) #NEWLINE# self . context = context . RequestContext ( 'fake' , 'fake' ) #NEWLINE# self . service . delete_all ( ) #NEWLINE# self . sent_to_glance = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# fakes . stub_out_glance_add_image ( self . stubs , self . sent_to_glance )