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

Method assert_roundtrip

tests/algorithms/test_RSA.py:368–369  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

366 json.dumps(as_dict)
367
368 def assert_roundtrip(self, key):
369 assert RSAKey(key.to_dict(), ALGORITHMS.RS256).to_dict() == key.to_dict()
370
371 @pytest.mark.parametrize("private_key", PRIVATE_KEYS)
372 def test_to_dict(self, private_key):

Callers 1

test_to_dictMethod · 0.95

Calls 2

RSAKeyClass · 0.90
to_dictMethod · 0.45

Tested by

no test coverage detected