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

Class TestUtils

tests/test_utils.py:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class TestUtils:
7 def test_total_seconds(self):
8 td = timedelta(seconds=5)
9
10 assert utils.timedelta_total_seconds(td) == 5
11
12 def test_long_to_base64(self):
13 assert utils.long_to_base64(0xDEADBEEF) == b"3q2-7w"
14 assert utils.long_to_base64(0xCAFED00D, size=10) == b"AAAAAAAAyv7QDQ"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…