Comment 13 for bug 1473369

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

Reviewed: https://review.openstack.org/200559
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=df0e566f2a144f53df77be29abb1f02ff11cf9be
Submitter: Jenkins
Branch: master

commit df0e566f2a144f53df77be29abb1f02ff11cf9be
Author: Louis Taylor <email address hidden>
Date: Fri Jul 10 14:17:18 2015 +0000

    Remove usage of assert_called_once in mocks

    This was never a real part of the mock api, but mock was happily mocking
    it out and letting the tests pass. The new mock release made this
    behaviour break, causing tests to fail on all patches. This patch
    replaces instances of assert_called_once with an assert of the mock's
    call_count.

    Closes-Bug: #1473369
    Co-Authored-By: Ian Cordasco <email address hidden>
    Change-Id: I12ff85a9480d8000b0de54939c3be71458162a40