#NEWLINE# def test_get( self ) : #NEWLINE# #INDENT# proxy = self . cs . proxy . get ( self . gid ) #NEWLINE# self . cs . assert_called ( 'GET' , ( '/groups/%s/proxy' % self . gid ) ) #NEWLINE# self . assertEqual ( self . gid , proxy . gid ) #NEWLINE# self . assertEqual ( self . user_id , proxy . user_id ) #NEWLINE# self . assertEqual ( self . project_id , self . project_id ) #NEWLINE# self . assertEqual ( None , proxy . ppid ) #NEWLINE# self . assertEqual ( 'pppppppp' , proxy . nova_instance_id ) #NEWLINE# self . assertEqual ( 'proxy' , proxy . name ) #NEWLINE# self . assertEqual ( 'xxxxxxxx' , proxy . glance_image_id ) #NEWLINE# self . assertEqual ( 'yyyyyyyy' , proxy . nova_flavor_id ) #NEWLINE# self . assertEqual ( 'iiiiiiii' , proxy . keypair_id ) #NEWLINE# self . assertEqual ( [ 'jjjjjjjj' , 'kkkkkkkk' ] , proxy . securitygroup_ids ) #NEWLINE# networks = [ { #NEWLINE# #INDENT# 'network_id' : 'mmmmmmmm' , #NEWLINE# 'fixed' : '10.0.0.2' , #NEWLINE# 'floating' : '1.1.1.1' , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . assertEqual ( networks , proxy . networks ) #NEWLINE# self . assertEqual ( 'ACTIVE' , proxy . app_status ) #NEWLINE# self . assertEqual ( 'ACTIVE' , proxy . status ) #NEWLINE# self . assertEqual ( 'IyEvYmluL3NoICBlY2hvICJIZWxsbyI=' , proxy . userdata ) #NEWLINE# args = { #NEWLINE# #INDENT# 'key1' : 'value1' , #NEWLINE# 'key2' : 'value2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( args , proxy . args ) #NEWLINE# self . assertEqual ( 'ipc_endpoint' , proxy . ipc_endpoint ) #NEWLINE# self . assertEqual ( 'shm_endpoint' , proxy . shm_endpoint ) #NEWLINE# self . assertEqual ( 'fs_endpoint' , proxy . fs_endpoint )