@query_params('allow_no_indices', 'expand_wildcards', 'ignore_unavailable',
        'local')
    def get_mapping(self, index=None, doc_type=None, params=None):
        return self.transport.perform_request('GET', _make_path(index,
            '_mapping', doc_type), params=params)
Test for Modify hostname
dataset/ETHPy150Open elastic/elasticsearch-py/elasticsearch/client/indices.py/IndicesClient.get_mapping--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/network_test.py/NetworkTestCase.test_mod_hostname