]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
fixes tests using called_once_ without assert
authorMiguel Angel Ajo <mangelajo@redhat.com>
Mon, 31 Mar 2014 13:50:55 +0000 (15:50 +0200)
committerMark McClain <mmcclain@yahoo-inc.com>
Fri, 4 Apr 2014 23:12:09 +0000 (19:12 -0400)
commit5efc0163490d02b6015286f2d25a186624be95c5
treee2212c4cd2f27457b69a30316e1170c34de1c334
parent8fd51240983f4c2ff2a73d907ccb1c597bd5d835
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)
neutron/tests/unit/agent/linux/test_async_process.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py
neutron/tests/unit/test_db_migration.py
neutron/tests/unit/test_dhcp_agent.py
neutron/tests/unit/test_metadata_agent.py
neutron/tests/unit/test_post_mortem_debug.py