#NEWLINE# def test_group_get_all( self ) : #NEWLINE# #INDENT# groups = [ { #NEWLINE# #INDENT# 'display_name' : 'display_name_01' , #NEWLINE# 'display_description' : 'display_description_01' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'display_name' : 'display_name_02' , #NEWLINE# 'display_description' : 'display_description_02' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'display_name' : 'display_name_03' , #NEWLINE# 'display_description' : 'display_description_03' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'display_name' : 'display_name_04' , #NEWLINE# 'display_description' : 'display_description_04' , #NEWLINE# #UNINDENT# } ] #NEWLINE# user_ids = [ 'user_id_01' , 'user_id_02' ] #NEWLINE# created_groups_list = [ ] #NEWLINE# for user_id in user_ids : #NEWLINE# #INDENT# created_groups = [ self . _create_group ( group , user_id = user_id , project_id = user_id ) for group in groups ] #NEWLINE# created_groups_list . append ( created_groups ) #NEWLINE# #UNINDENT# ctext = context . RequestContext ( user_id = user_ids [ 0 ] , project_id = user_ids [ 0 ] ) #NEWLINE# res_groups = db . group_get_all ( ctext ) #NEWLINE# ignored_keys = [ 'deleted' , 'deleted_at' , 'updated_at' , 'created_at' ] #NEWLINE# self . assertEqual ( len ( res_groups ) , len ( created_groups_list [ 0 ] ) ) #NEWLINE# for group in range ( 0 , len ( res_groups ) ) : #NEWLINE# #INDENT# self . _assertEqualObjects ( res_groups [ group ] , created_groups_list [ 0 ] [ group ] , ignored_keys )