'Test get_check_tpls'

@mock.patch('config.get_auto_confd_path', return_value=os.path.join(os.path.dirname(__file__), 'fixtures/auto_conf/'))
@mock.patch.object(AbstractConfigStore, 'client_read', side_effect=client_read)
def test_get_check_tpls(self, *args):

    valid_config = ['image_0', 'image_1', 'image_2']
    invalid_config = ['bad_image_0', 'bad_image_1']
    config_store = get_config_store(self.auto_conf_agentConfig)
    for image in valid_config:
        tpl = self.mock_raw_templates.get(image)[1]
        self.assertEquals(tpl, config_store.get_check_tpls(image))
    for image in invalid_config:
        tpl = self.mock_raw_templates.get(image)[1]
        self.assertEquals(tpl, config_store.get_check_tpls(image))
