#NEWLINE# def test_get_fields( self ) : #NEWLINE# #INDENT# self . resource = self . mgr . get ( service_id = SERVICE1 [ 'service_id' ] ) #NEWLINE# fields = self . resource . fields [ : ] #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 ( fields ) ) #NEWLINE# field = fields [ 0 ] #NEWLINE# self . assertEqual ( SERVICE1 [ 'service_id' ] , field . service_id ) #NEWLINE# self . assertEqual ( FIELD1 [ 'field_id' ] , field . field_id ) #NEWLINE# self . assertEqual ( FIELD1 [ 'name' ] , field . name )