Fix nsxlib UT mocks to return the right output format

nsxlib_testcase initializes a mock for section init_default which
returned the wrong kind of output.

Change-Id: Ia0d3b58b7e66aead01f1dcaa53b67129cb98a60b
This commit is contained in:
Adit Sarfaty 2018-06-14 09:24:03 +03:00
parent 756a33b6cf
commit 716527fb20

View File

@ -77,8 +77,7 @@ def _mock_nsxlib():
mocking.append(mock.patch(
"vmware_nsxlib.v3.security.NsxLibNsGroup.create",
side_effect=_return_id_key
))
side_effect=_return_id_key))
mocking.append(mock.patch(
"vmware_nsxlib.v3.security.NsxLibFirewallSection.create_empty",
@ -86,7 +85,7 @@ def _mock_nsxlib():
mocking.append(mock.patch(
"vmware_nsxlib.v3.security.NsxLibFirewallSection.init_default",
side_effect=_return_id_key))
return_value=uuidutils.generate_uuid()))
mocking.append(mock.patch(
"vmware_nsxlib.v3.security.NsxLibNsGroup.list"))