@classmethod
    def get_s(cls, mapping_type=None):
        if mapping_type is not None:
            s = S(mapping_type)
        else:
            s = S()
        return (s.es(**cls.es_settings)
                 .indexes(cls.index_name)
                 .doctypes(cls.mapping_type_name))
Ensure a specific configuration line exists in the running config
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/estestcase.py/ESTestCase.get_s--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/nxos.py/config_present