]> 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)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Wed, 2 Apr 2014 19:34:18 +0000 (21:34 +0200)
commitc6c4a20777921dc1b21e80edb96ccd957a054c68
tree32ea51beff15ca1fd5356cc2cdfa707cfd6d3f12
parent4599e80bd2d6b6ea17b78ba858d618e95ca8be22
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
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