#NEWLINE# def test_list_groups( self ) : #NEWLINE# #INDENT# resources = list ( self . mgr . list ( ) ) #NEWLINE# expect = [ 'GET' , '/v1/rating/module_config/hashmap/groups' ] #NEWLINE# self . http_client . assert_called ( * expect ) #NEWLINE# self . assertEqual ( 3 , len ( resources ) ) #NEWLINE# self . assertEqual ( resources [ 0 ] . group_id , GROUP1 [ 'group_id' ] ) #NEWLINE# self . assertEqual ( GROUP1 [ 'name' ] , resources [ 0 ] . name ) #NEWLINE# self . assertEqual ( GROUP2 [ 'name' ] , resources [ 1 ] . name ) #NEWLINE# self . assertEqual ( GROUP3 [ 'name' ] , resources [ 2 ] . name )