There is no method called_once_with() in Mock object.
Use assert_called_once_with() instead.
And called_once_with() does nothing because it's a mock object.
In case 'test_setup_with_no_lbaas', method iterate_per_tenants() will
not be called when setup with no lbass, so use assert_not_called()
instead.
Reviewed: https:/ /review. openstack. org/281252 /git.openstack. org/cgit/ openstack/ rally/commit/ ?id=a924151906e ab93d7455688337 cf08415c56058e
Committed: https:/
Submitter: Jenkins
Branch: master
commit a924151906eab93 d7455688337cf08 415c56058e
Author: Chaozhe.Chen <email address hidden>
Date: Wed Feb 17 20:54:46 2016 +0800
Test: Stop using non-existent method of Mock
There is no method called_once_with() in Mock object. called_ once_with( ) instead.
Use assert_
And called_once_with() does nothing because it's a mock object.
In case 'test_setup_ with_no_ lbaas', method iterate_ per_tenants( ) will
not be called when setup with no lbass, so use assert_not_called()
instead.
Change-Id: Ib25b325b8764e6 f0e0928f46f4789 fce0f04b9e1
Closes-Bug: #1544522