#NEWLINE# def setup( self ) : #NEWLINE# #INDENT# MyResult = namedtuple ( 'MyResult' , 'request_id' ) #NEWLINE# self . myrequest = MyResult ( request_id = 42 ) #NEWLINE# MyStruct = namedtuple ( 'MyStruct' , 'name label os category description location              affinity_group media_link' ) #NEWLINE# self . list_os_images = [ MyStruct ( name = 'some-name' , label = 'bob' , os = 'linux' , category = 'cloud' , description = 'nice' , location = 'here' , affinity_group = 'ok' , media_link = 'url' ) ] #NEWLINE# account = AzureAccount ( Config ( region_name = 'East US 2' , filename = '../data/config' ) ) #NEWLINE# self . mgmt_service = mock . Mock ( ) #NEWLINE# account . get_management_service = mock . Mock ( return_value = MyResult . mgmt_service ) #NEWLINE# account . storage_key = mock . Mock ( ) #NEWLINE# self . cloud_service = CloudService ( account )