From: Jason Dunsmore Date: Mon, 5 Aug 2013 18:56:42 +0000 (-0500) Subject: Don't assign "error" variable twice. X-Git-Tag: 2014.1~270^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=042d6c17d92432acf8325612dd173b896034a127;p=openstack-build%2Fheat-build.git Don't assign "error" variable twice. Fixes bug #1208567 Change-Id: Iaf22f68935d833d749615f998f402fe997e8e029 --- diff --git a/heat/tests/test_api_openstack_v1.py b/heat/tests/test_api_openstack_v1.py index 12be4f89..80d37a68 100644 --- a/heat/tests/test_api_openstack_v1.py +++ b/heat/tests/test_api_openstack_v1.py @@ -900,7 +900,7 @@ class StackControllerTest(ControllerTest, HeatTestCase): identity = identifier.HeatIdentifier(self.tenant, 'wordpress', '6') req = self._get('/stacks/%(stack_name)s/%(stack_id)s' % identity) - error = error = heat_exc.StackNotFound(stack_name='a') + error = heat_exc.StackNotFound(stack_name='a') self.m.StubOutWithMock(rpc, 'call') rpc.call(req.context, self.topic, {'namespace': None, @@ -1722,7 +1722,7 @@ class EventControllerTest(ControllerTest, HeatTestCase): req = self._get(stack_identity._tenant_path() + '/events') - error = error = heat_exc.StackNotFound(stack_name='a') + error = heat_exc.StackNotFound(stack_name='a') self.m.StubOutWithMock(rpc, 'call') rpc.call(req.context, self.topic, {'namespace': None, @@ -1967,7 +1967,7 @@ class EventControllerTest(ControllerTest, HeatTestCase): req = self._get(stack_identity._tenant_path() + '/resources/' + res_name + '/events/' + event_id) - error = error = heat_exc.StackNotFound(stack_name='a') + error = heat_exc.StackNotFound(stack_name='a') self.m.StubOutWithMock(rpc, 'call') rpc.call(req.context, self.topic, {'namespace': None,