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/279126 /git.openstack. org/cgit/ openstack/ sahara/ commit/ ?id=7d01fabc5e1 6de0363afeb55c0 7fde889eb38a32
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7d01fabc5e16de0 363afeb55c07fde 889eb38a32
Author: Javeme <email address hidden>
Date: Thu Feb 11 19:19:12 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 838faa06330a0d3 dc77cc0d07a
Change-Id: I5698a724bc030b