#NEWLINE# def test_securitygroup_get_by_securitygroup_id( self ) : #NEWLINE# #INDENT# group = self . _create_group ( 'gid1' ) #NEWLINE# securitygroup_ids = [ 'sc1' , 'sc2' , 'sc3' ] #NEWLINE# securitygroups = [ ] #NEWLINE# for securitygroup_id in securitygroup_ids : #NEWLINE# #INDENT# securitygroup = db . securitygroup_create ( self . user_ctxt , self . _get_base_values ( group [ 'gid' ] , securitygroup_id ) ) #NEWLINE# securitygroups . append ( securitygroup ) #NEWLINE# #UNINDENT# res_securitygroup = db . securitygroup_get_by_securitygroup_id ( self . user_ctxt , group [ 'gid' ] , securitygroup_ids [ 0 ] ) #NEWLINE# ignored_keys = [ 'deleted_at' , 'updated_at' , 'created_at' , 'processes' ] #NEWLINE# self . _assertEqualObjects ( securitygroup , securitygroups [ 0 ] , ignored_keys )