]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix test_update_status unit test in Loadbalancer test suite
authorEugene Nikanorov <enikanorov@mirantis.com>
Wed, 14 Aug 2013 12:53:22 +0000 (16:53 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Wed, 14 Aug 2013 13:03:42 +0000 (17:03 +0400)
Add proper check of the updated object.

fixes bug 1212229

Change-Id: Icbe0a127a045ff93630dfa7f8d3fd6af771ddc5e

neutron/tests/unit/db/loadbalancer/test_db_loadbalancer.py

index 697b1cd464d33bbf57f1d652e034d1a242ecf0aa..d1b4cc2c3d32a206b9dbc755bb889493e3a69473 100644 (file)
@@ -1237,7 +1237,7 @@ class TestLoadBalancer(LoadBalancerPluginDbTestCase):
             updated_pool = self.plugin.get_pool(context.get_admin_context(),
                                                 pool['pool']['id'])
             self.assertEqual(updated_pool['status'], 'ACTIVE')
-            self.assertFalse(pool['pool']['status_description'])
+            self.assertFalse(updated_pool['status_description'])
 
     def test_update_pool_health_monitor(self):
         with self.pool() as pool: