]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Don't use Mock.called_once_with that does not exist
authorJaveme <zhangmei.li@easystack.cn>
Thu, 11 Feb 2016 12:09:41 +0000 (20:09 +0800)
committerJaveme <zhangmei.li@easystack.cn>
Fri, 12 Feb 2016 05:25:31 +0000 (13:25 +0800)
commit22cb2e81a6d5dfad022fae5fca7601e2ae9aab88
treeef3b4871c0243acc66b2a5dcd302e232a55a4e85
parentd5ccbf9c28fd8fa869db8e7e9847ed74d3c0b49d
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
cinder/tests/unit/api/contrib/test_volume_unmanage.py
cinder/tests/unit/backup/drivers/test_backup_posix.py
cinder/tests/unit/test_dellfc.py