#NEWLINE# def test_get_mappings( self ) : #NEWLINE# #INDENT# mappings = self . resource . mappings [ : ] #NEWLINE# expect = [ 'GET' , ( '/v1/rating/module_config/hashmap/mappings?service_id=' + SERVICE3 [ 'service_id' ] ) ] #NEWLINE# self . http_client . assert_called ( * expect ) #NEWLINE# self . assertEqual ( 1 , len ( mappings ) ) #NEWLINE# mapping = mappings [ 0 ] #NEWLINE# self . assertEqual ( SERVICE3 [ 'service_id' ] , mapping . service_id ) #NEWLINE# self . assertEqual ( SERVICE_MAPPING1 [ 'mapping_id' ] , mapping . mapping_id ) #NEWLINE# self . assertEqual ( SERVICE_MAPPING1 [ 'value' ] , mapping . value ) #NEWLINE# self . assertEqual ( SERVICE_MAPPING1 [ 'cost' ] , mapping . cost ) #NEWLINE# self . assertEqual ( SERVICE_MAPPING1 [ 'type' ] , mapping . type )