commit c6c4a20777921dc1b21e80edb96ccd957a054c68
Author: Miguel Angel Ajo <email address hidden>
Date: Mon Mar 31 15:50:55 2014 +0200
fixes tests using called_once_ without assert
A few tests were using mock's called_once, or called_once_with_args
instead of assert_called_once or assert_called_once_with_args. Those
methods return a bool that needs to be actively checked.
The tests are fixed to avoid them from passing if the call condition
is not met.
Reviewed: https:/ /review. openstack. org/84139 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c6c4a207779 21dc1b21e80edb9 6ccd957a054c68
Committed: https:/
Submitter: Jenkins
Branch: master
commit c6c4a20777921dc 1b21e80edb96ccd 957a054c68
Author: Miguel Angel Ajo <email address hidden>
Date: Mon Mar 31 15:50:55 2014 +0200
fixes tests using called_once_ without assert
A few tests were using mock's called_once, or called_ once_with_ args called_ once_with_ args. Those
instead of assert_called_once or assert_
methods return a bool that needs to be actively checked.
The tests are fixed to avoid them from passing if the call condition
is not met.
Change-Id: I21e5257b26b2a0 8cc8f0b108233d1 d5cc0b97b89
Closes-bug: #1297875