Skip to content

Commit 59fef68

Browse files
committed
Add test for size parameter of long_to_base64.
1 parent 38d9f82 commit 59fef68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ def test_total_seconds(self):
1313

1414
def test_long_to_base64(self):
1515
assert utils.long_to_base64(0xDEADBEEF) == b'3q2-7w'
16+
assert utils.long_to_base64(0xCAFED00D, size=10) == b'AAAAAAAAyv7QDQ'

0 commit comments

Comments
 (0)