Esempio n. 1
0
 def __init__(self, result=None, error=None, reqId=None):
     self.result = unprotect_passwords(result)
     self.error = error
     self.id = reqId
Esempio n. 2
0
 def __init__(self, result=None, error=None, reqId=None):
     self.result = unprotect_passwords(result)
     self.error = error
     self.id = reqId
Esempio n. 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)
Esempio n. 4
0
 def test_unprotect_dict(self):
     protected = dict_protected()
     unprotected = dict_unprotedted()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Esempio n. 5
0
 def test_unprotect_nested_dicts(self):
     protected = nested_dicts_protected()
     unprotected = nested_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Esempio n. 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))
Esempio n. 7
0
 def test_unprotect_empty(self, result):
     self.assertEqual(result, unprotect_passwords(result))
Esempio n. 8
0
 def devicesGetList(self, storageType=None, options=None):
     api = API.Global()
     res = api.getDeviceList(storageType)
     return unprotect_passwords(res)
Esempio n. 9
0
 def test_unprotect_nested_dicts(self):
     protected = nested_dicts_protected()
     unprotected = nested_dicts_unprotected()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Esempio n. 10
0
 def test_unprotect_dict(self):
     protected = dict_protected()
     unprotected = dict_unprotedted()
     self.assertEqual(unprotected, unprotect_passwords(protected))
Esempio n. 11
0
 def test_unprotect_empty(self, result):
     self.assertEqual(result, unprotect_passwords(result))
Esempio n. 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))