Comment 0 for bug 1330391

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote : Wrong assertions in unittests

mock objects don't have method "assert_called_once", but this is called in next unit test suites:

manila/tests/network/linux/test_interface.py
manila/tests/network/neutron/test_neutron_api.py
manila/tests/test_share_generic.py
manila/tests/test_service_instance.py

So, these test modules should be rewritten properly using next methods:

assert_any_call
assert_called_once_with
assert_called_with
assert_has_calls