In test_couchdb_manager.py, GuestAgentCouchDBManagerTest.test_restart
isn't properly mocking CouchDBApp.restart. As coded, subsequent
tests calling restart will not necessarily behave correctly.
This change uses the with patch.object construct to correct this.
Reviewed: https:/ /review. openstack. org/167368 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=087229b4fbd e7002cc05606e18 411b5088582377
Committed: https:/
Submitter: Jenkins
Branch: master
commit 087229b4fbde700 2cc05606e18411b 5088582377
Author: Doug Shelley <email address hidden>
Date: Tue Mar 24 18:49:31 2015 +0000
Fix CouchDB unit test to properly mock restart
In test_couchdb_ manager. py, GuestAgentCouch DBManagerTest. test_restart
isn't properly mocking CouchDBApp.restart. As coded, subsequent
tests calling restart will not necessarily behave correctly.
This change uses the with patch.object construct to correct this.
Change-Id: I5fb4895eae81a7 ef89bd7fadfeee7 ef5595b7fc5
Closes-Bug: 1434527