def test_use(self):
        self.rally.env.update(utils.TEST_ENV)
        output = self.rally(
            "deployment create --name t_create_env1 --fromenv")
        uuid = re.search(r"Using deployment: (?P<uuid>[0-9a-f\-]{36})",
                         output).group("uuid")
        self.rally("deployment create --name t_create_env2 --fromenv")
        self.rally("deployment use --deployment %s" % uuid)
        current_deployment = utils.get_global("RALLY_DEPLOYMENT",
                                              self.rally.env)
        self.assertEqual(uuid, current_deployment)
dataset/ETHPy150Open openstack/rally/tests/functional/test_cli_deployment.py/DeploymentTestCase.test_use/original