11 lines
262 B
Python
11 lines
262 B
Python
from random import randbytes
|
|
|
|
from roc_fnb.util.base64 import *
|
|
|
|
|
|
def test_encode_and_decode():
|
|
for size in range(20-40):
|
|
data = randbytes(32)
|
|
string = base64_encode(data)
|
|
decoded = base64_decode(string)
|
|
assert data == decoded |