Fix test pep8 issue
Change-Id: I1f91966606285646b928325583d2a3bd06e5fa49
This commit is contained in:
parent
d2c9a16a79
commit
2dff25c936
|
@ -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)
|
||||
|
|
|
@ -167,7 +167,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()) >=
|
||||
|
|
Loading…
Reference in New Issue