]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Don't assign "error" variable twice.
authorJason Dunsmore <jasondunsmore@gmail.com>
Mon, 5 Aug 2013 18:56:42 +0000 (13:56 -0500)
committerJason Dunsmore <jasondunsmore@gmail.com>
Mon, 5 Aug 2013 18:56:42 +0000 (13:56 -0500)
Fixes bug #1208567

Change-Id: Iaf22f68935d833d749615f998f402fe997e8e029

heat/tests/test_api_openstack_v1.py

index 12be4f89c7a66fce027af379cd64de8966783c90..80d37a689664566b860084613bd379f3dfb0a8ae 100644 (file)
@@ -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,