Fix NSX|V3 unit tests

Commit Ibb1ea9b64bb92f3cae488db41da6bec849ce042e removed a mock
from the nsxlib base tests.
This mock is still needed by the vmware-nsx unit tests,
so it is added here.

Change-Id: Id13159d24fb5a599e02439cca0cfd4a122c65eed
This commit is contained in:
Adit Sarfaty 2017-06-07 09:28:46 +03:00
parent 3a8a5bdae5
commit 24fc248f42

View File

@ -148,6 +148,10 @@ def _mock_nsx_backend_calls():
"vmware_nsxlib.v3.resources.LogicalDhcpServer.create_binding",
side_effect=_return_id_key).start()
mock.patch(
"vmware_nsxlib.v3.NsxLib.get_version",
return_value='1.1.0').start()
class NsxV3PluginTestCaseMixin(test_plugin.NeutronDbPluginV2TestCase,
nsxlib_testcase.NsxClientTestCase):