#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( _IntegratedTestBase , self ) . setUp ( ) #NEWLINE# f = self . _get_flags ( ) #NEWLINE# self . flags ( ** f ) #NEWLINE# self . flags ( verbose = True ) #NEWLINE# def fake_get_image_service( context , image_href ) : #NEWLINE# #INDENT# image_id = int ( str ( image_href ) . split ( '/' ) [ ( - 1 ) ] ) #NEWLINE# return ( nova . image . fake . FakeImageService ( ) , image_id ) #NEWLINE# #UNINDENT# self . stubs . Set ( nova . image , 'get_image_service' , fake_get_image_service ) #NEWLINE# self . start_service ( 'compute' ) #NEWLINE# self . start_service ( 'volume' ) #NEWLINE# self . start_service ( 'network' ) #NEWLINE# self . start_service ( 'scheduler' ) #NEWLINE# self . _start_api_service ( ) #NEWLINE# self . api = client . TestOpenStackClient ( 'fake' , 'fake' , self . auth_url )