commit 5efc0163490d02b6015286f2d25a186624be95c5
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.
Change-Id: I21e5257b26b2a08cc8f0b108233d1d5cc0b97b89
Closes-bug: #1297875
(cherry picked from commit c6c4a20777921dc1b21e80edb96ccd957a054c68)
Reviewed: https:/ /review. openstack. org/85521 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=5efc0163490 d02b6015286f2d2 5a186624be95c5
Committed: https:/
Submitter: Jenkins
Branch: milestone-proposed
commit 5efc0163490d02b 6015286f2d25a18 6624be95c5
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 1b21e80edb96ccd 957a054c68)
Closes-bug: #1297875
(cherry picked from commit c6c4a20777921dc