def METHOD_NAME(self, template):
    resp = self._client.transport.perform_request('GET', '/_index_template/' + template)
    found = False
    for index_template in resp['index_templates']:
        if index_template['name'] == template:
            found = True
    assert found