Exemple #1
0
 def __init__(self, result=None, error=None, reqId=None):
     self.result = unprotect_passwords(result)
     self.error = error
     self.id = reqId
Exemple #2
0
 def __init__(self, result=None, error=None, reqId=None):
     self.result = unprotect_passwords(result)
     self.error = error
     self.id = reqId
Exemple #3
0
 def devicesGetList(self, storageType=None, guids=(),
                    checkStatus=True, options=None):
     api = API.Global()
     res = api.getDeviceList(storageType, guids, checkStatus)
     return unprotect_passwords(res)
Exemple #4
0
 def test_unprotect_dict(self):
     protected = dict_protected()
     unprotected = dict_unprotedted()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Exemple #5
0
 def test_unprotect_nested_dicts(self):
     protected = nested_dicts_protected()
     unprotected = nested_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Exemple #6
0
 def test_unprotect_lists_of_dicts(self):
     protected = lists_of_dicts_protected()
     unprotected = lists_of_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Exemple #7
0
 def test_unprotect_empty(self, result):
     self.assertEqual(result, unprotect_passwords(result))
Exemple #8
0
 def devicesGetList(self, storageType=None, options=None):
     api = API.Global()
     res = api.getDeviceList(storageType)
     return unprotect_passwords(res)
Exemple #9
0
 def test_unprotect_nested_dicts(self):
     protected = nested_dicts_protected()
     unprotected = nested_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Exemple #10
0
 def test_unprotect_dict(self):
     protected = dict_protected()
     unprotected = dict_unprotedted()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Exemple #11
0
 def test_unprotect_empty(self, result):
     self.assertEqual(result, unprotect_passwords(result))
Exemple #12
0
 def test_unprotect_lists_of_dicts(self):
     protected = lists_of_dicts_protected()
     unprotected = lists_of_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))