Files
vmware-nsx/neutron/tests/unit/test_metadata_agent.py
Miguel Angel Ajo d6a93e31d4 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
2014-04-02 21:34:18 +02:00

17 KiB