Comment 12 for bug 1473369

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

Reviewed: https://review.openstack.org/200457
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=d0560a96c6b2301247cc1fff88962ef86fbf42ed
Submitter: Jenkins
Branch: master

commit d0560a96c6b2301247cc1fff88962ef86fbf42ed
Author: Sergey Vilgelm <email address hidden>
Date: Fri Jul 10 13:12:17 2015 +0300

    Fix the unit tests with wrong using of mock

    Replace assert_called_twice with self.assertEqual(2, <...>.call_count).
    Replace assert_called_once() with self.assertEqual(1, <...>.call_count).
    Use a list of calls for the assert_has_calls function.

    Co-Author: Victor Ryzhenkin <email address hidden>
    Change-Id: Idccd60140c8e5195c31291f03afc99ab3b1eb569
    Closes-Bug: 1473369