'Test enabling a stack domain user.'

def test_enable_stack_domain_user(self):

    ctx = utils.dummy_context()
    self.patchobject(ctx, '_create_auth_plugin')
    ctx.trust_id = None
    self._stub_domain_admin_client()
    self._stub_admin_user_get('duser123', 'adomain123', 'aproject')
    self.mock_admin_client.users.update(user='duser123', enabled=True).AndReturn(None)
    self.m.ReplayAll()
    heat_ks_client = heat_keystoneclient.KeystoneClient(ctx)
    heat_ks_client.enable_stack_domain_user(user_id='duser123', project_id='aproject')
