MCPcopy Create free account
hub / github.com/mpdavis/python-jose / test_custom_object

Method test_custom_object

tests/test_jws.py:262–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

260 assert ({},) == jws._get_keys({})
261
262 def test_custom_object(self):
263 class MyDict(dict):
264 pass
265
266 mydict = MyDict()
267 assert (mydict,) == jws._get_keys(mydict)
268
269 def test_RFC7517_string(self):
270 key = '{"keys": [{}, {}]}'

Callers

nothing calls this directly

Calls 1

MyDictClass · 0.85

Tested by

no test coverage detected