forked from TrueCloudLab/s3-tests
f5d0bc9be3
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 lines
399 B
Python
9 lines
399 B
Python
from . import utils
|
|
|
|
def test_generate():
|
|
FIVE_MB = 5 * 1024 * 1024
|
|
assert len(''.join(utils.generate_random(0))) == 0
|
|
assert len(''.join(utils.generate_random(1))) == 1
|
|
assert len(''.join(utils.generate_random(FIVE_MB - 1))) == FIVE_MB - 1
|
|
assert len(''.join(utils.generate_random(FIVE_MB))) == FIVE_MB
|
|
assert len(''.join(utils.generate_random(FIVE_MB + 1))) == FIVE_MB + 1
|