Comment 1 for bug 1434527

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/167368
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=087229b4fbde7002cc05606e18411b5088582377
Submitter: Jenkins
Branch: master

commit 087229b4fbde7002cc05606e18411b5088582377
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, 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.

    Change-Id: I5fb4895eae81a7ef89bd7fadfeee7ef5595b7fc5
    Closes-Bug: 1434527