# Path: jose/utils.py
#     def long_to_bytes(n, blocksize=0):
#     def long_to_bytes(n, blocksize=0):
# def long_to_base64(data, size=0):
# def int_arr_to_long(arr):
# def base64_to_long(data):
# def calculate_at_hash(access_token, hash_alg):
# def base64url_decode(input):
# def base64url_encode(input):
# def timedelta_total_seconds(delta):
# def ensure_binary(s):


from datetime import timedelta
from jose import utils



class TestUtils:
    def test_total_seconds(self):
        td = timedelta(seconds=5)

        assert utils.timedelta_total_seconds(td) == 5

    def test_long_to_base64(self):

# Path: jose/utils.py
#     def long_to_bytes(n, blocksize=0):
#     def long_to_bytes(n, blocksize=0):
# def long_to_base64(data, size=0):
# def int_arr_to_long(arr):
# def base64_to_long(data):
# def calculate_at_hash(access_token, hash_alg):
# def base64url_decode(input):
# def base64url_encode(input):
# def timedelta_total_seconds(delta):
# def ensure_binary(s):


# Path: tests/test_utils.py
from datetime import timedelta
from jose import utils




class TestUtils:
    def test_total_seconds(self):
        td = timedelta(seconds=5)

        assert utils.timedelta_total_seconds(td) == 5

    def test_long_to_base64(self):

        assert utils.long_to_base64(0xDEADBEEF) == b"3q2-7w"