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.
Reviewed: https:/ /review. openstack. org/279134 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=22cb2e81a6d 5dfad022fae5fca 7601e2ae9aab88
Committed: https:/
Submitter: Jenkins
Branch: master
commit 22cb2e81a6d5dfa d022fae5fca7601 e2ae9aab88
Author: Javeme <email address hidden>
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 called_ once_with. Currently there are still ome places
method assert_
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 39f43d441bc6d08 32686536961
Change-Id: Iac7c029a1cc664