Fix test pep8 issue

Change-Id: I1f91966606285646b928325583d2a3bd06e5fa49
This commit is contained in:
asarfaty 2019-12-18 08:48:17 +02:00 committed by Adit Sarfaty
parent f259cec359
commit 99d13476df
2 changed files with 3 additions and 4 deletions

View File

@ -337,12 +337,11 @@ class NsxV3JSONClientTestCase(nsxlib_testcase.NsxClientTestCase):
self.assertEqual(resp, {'result': {'ok': 200}})
def test_mask_password(self):
pwds = ('my!pwd0#', 'some0therlong$pwd', 'pwd')
pwds = ('my!pwd0#', 'some0therlong$pwd')
body = {'name_pwd': 'name1',
'password': pwds[0],
'some_list': {'name_password': 'name2',
'password': pwds[1]},
'password': pwds[2]}
'password': pwds[1]}}
cl = client.RESTClient(None)
json_body = jsonutils.dumps(body)

View File

@ -164,7 +164,7 @@ class NsxLib(lib.NsxLibBase):
def export_restricted(self):
node = self.client.get("node")
return node.get('export_type') is 'RESTRICTED'
return node.get('export_type') == 'RESTRICTED'
def feature_supported(self, feature):
if (version.LooseVersion(self.get_version()) >=