#NEWLINE# def setup( self ) : #NEWLINE# #INDENT# 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 . service = mock . Mock ( ) #NEWLINE# account . get_management_service = mock . Mock ( return_value = self . service ) #NEWLINE# account . get_blob_service_host_base = mock . Mock ( return_value = 'test.url' ) #NEWLINE# account . storage_key = mock . Mock ( ) #NEWLINE# self . account = account #NEWLINE# self . vm = VirtualMachine ( MyStruct ) #NEWLINE# self . system_config = self . vm . create_linux_configuration ( 'some-user' , 'some-host' )