#NEWLINE# def test_security_group_update( self ) : #NEWLINE# #INDENT# secgroup = self . api_q_secgroups . list ( ) [ 1 ] #NEWLINE# secgroup = copy . deepcopy ( secgroup ) #NEWLINE# secgroup [ 'name' ] = 'newname' #NEWLINE# secgroup [ 'description' ] = 'new description' #NEWLINE# body = { #NEWLINE# #INDENT# 'security_group' : { #NEWLINE# #INDENT# 'name' : secgroup [ 'name' ] , #NEWLINE# 'description' : secgroup [ 'description' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . qclient . update_security_group ( secgroup [ 'id' ] , body ) . AndReturn ( { #NEWLINE# #INDENT# 'security_group' : secgroup , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# ret = api . network . security_group_update ( self . request , secgroup [ 'id' ] , secgroup [ 'name' ] , secgroup [ 'description' ] ) #NEWLINE# self . _cmp_sg ( secgroup , ret )