예제 #1
0
파일: __init__.py 프로젝트: wuyeliang/vdsm
 def __init__(self, result=None, error=None, reqId=None):
     self.result = unprotect_passwords(result)
     self.error = error
     self.id = reqId
예제 #2
0
 def test_unprotect_dict(self):
     protected = dict_protected()
     unprotected = dict_unprotedted()
     self.assertEqual(unprotected, unprotect_passwords(protected))
예제 #3
0
 def test_unprotect_nested_dicts(self):
     protected = nested_dicts_protected()
     unprotected = nested_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
예제 #4
0
 def test_unprotect_lists_of_dicts(self):
     protected = lists_of_dicts_protected()
     unprotected = lists_of_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
예제 #5
0
 def test_unprotect_empty(self, result):
     self.assertEqual(result, unprotect_passwords(result))
예제 #6
0
파일: passwords_test.py 프로젝트: nirs/vdsm
 def test_unprotect_nested_dicts(self):
     protected = nested_dicts_protected()
     unprotected = nested_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
예제 #7
0
파일: passwords_test.py 프로젝트: nirs/vdsm
 def test_unprotect_dict(self):
     protected = dict_protected()
     unprotected = dict_unprotedted()
     self.assertEqual(unprotected, unprotect_passwords(protected))
예제 #8
0
파일: passwords_test.py 프로젝트: nirs/vdsm
 def test_unprotect_empty(self, result):
     self.assertEqual(result, unprotect_passwords(result))
예제 #9
0
파일: passwords_test.py 프로젝트: nirs/vdsm
 def test_unprotect_lists_of_dicts(self):
     protected = lists_of_dicts_protected()
     unprotected = lists_of_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
예제 #10
0
파일: __init__.py 프로젝트: nirs/vdsm
 def __init__(self, result=None, error=None, reqId=None):
     self.result = unprotect_passwords(result)
     self.error = error
     self.id = reqId