'Check that escaped \'%(\' doesn\'t get interpreted.'

def test_escaped_sequence_in_domain_config(self):

    mock_log = mock.Mock()
    escaped_option_config = {'ldap': {'url': 'my_url/%%(password)s', 'user_tree_dn': uuid.uuid4().hex, 'password': uuid.uuid4().hex}, 'identity': {'driver': uuid.uuid4().hex}}
    self.domain_config_api.create_config(self.domain['id'], escaped_option_config)
    with mock.patch('keystone.resource.core.LOG', mock_log):
        res = self.domain_config_api.get_config_with_sensitive_info(self.domain['id'])
    self.assertFalse(mock_log.warn.called)
    self.assertEqual('my_url/%(password)s', res['ldap']['url'])
