#NEWLINE# def test_list_fields( self ) : #NEWLINE# #INDENT# resources = list ( self . mgr . list ( service_id = SERVICE1 [ 'service_id' ] ) ) #NEWLINE# expect = [ 'GET' , ( '/v1/rating/module_config/hashmap/fields?service_id=' + SERVICE1 [ 'service_id' ] ) ] #NEWLINE# self . http_client . assert_called ( * expect ) #NEWLINE# self . assertEqual ( 3 , len ( resources ) ) #NEWLINE# self . assertEqual ( SERVICE1 [ 'service_id' ] , resources [ 0 ] . service_id ) #NEWLINE# self . assertEqual ( FIELD1 [ 'name' ] , resources [ 0 ] . name ) #NEWLINE# self . assertEqual ( FIELD2 [ 'name' ] , resources [ 1 ] . name ) #NEWLINE# self . assertEqual ( FIELD3 [ 'name' ] , resources [ 2 ] . name )