Reviewed: https://review.openstack.org/279134 Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=22cb2e81a6d5dfad022fae5fca7601e2ae9aab88 Submitter: Jenkins Branch: master
commit 22cb2e81a6d5dfad022fae5fca7601e2ae9aab88 Author: Javeme <zhangmei...@easystack.cn> Date: Thu Feb 11 20:09:41 2016 +0800 Don't use Mock.called_once_with that does not exist class mock.Mock does not exist method called_once_with, it just exists method assert_called_once_with. Currently there are still ome places where we use called_once_with method, this patch let's correct it. NOTE: called_once_with() does nothing because it's a mock object. Closes-Bug: #1544522 Change-Id: Iac7c029a1cc66439f43d441bc6d0832686536961 ** Changed in: cinder Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1544522 Title: Don't use Mock.called_once_with that does not exist Status in Cinder: Fix Released Status in neutron: Confirmed Status in Sahara: Fix Released Bug description: class mock.Mock does not exist method "called_once_with", it just exists method "assert_called_once_with". Currently there are still some places where we use called_once_with method, we should correct it. NOTE: called_once_with() does nothing because it's a mock object. To manage notifications about this bug go to: https://bugs.launchpad.net/cinder/+bug/1544522/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp