Searched refs:to_serialize (Results 1 – 4 of 4) sorted by relevance
119 def _to_json(self, strip, to_serialize=None): argument136 if to_serialize is None:137 to_serialize = copy.copy(self.__dict__)138 pkcs12_val = to_serialize.get(_PKCS12_KEY)140 to_serialize[_PKCS12_KEY] = base64.b64encode(pkcs12_val)142 strip, to_serialize=to_serialize)
243 def _to_json(self, strip, to_serialize=None): argument258 if to_serialize is None:259 to_serialize = copy.copy(self.__dict__)262 to_serialize = copy.copy(to_serialize)264 if member in to_serialize:265 del to_serialize[member]266 to_serialize['token_expiry'] = _parse_expiry(267 to_serialize.get('token_expiry'))269 to_serialize['_class'] = curr_type.__name__270 to_serialize['_module'] = curr_type.__module__[all …]
68 to_serialize = {'unrelated': 'data'}69 serialized_str = creds._to_json([], to_serialize.copy())76 expected_serialized.update(to_serialize)
143 to_serialize = {148 orig_vals = to_serialize.copy()149 json_payload = credentials._to_json([], to_serialize=to_serialize)158 expected_payload.update(to_serialize)165 self.assertEqual(to_serialize, orig_vals)