mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
67f4f5d356
Added sample config file for boto3 and vstart.sh Modified setup.py, requirements.txt, and README Added an rgw_interactive.py to use interactively with vstart.sh and python -i Ported 400+ tests over to boto3 from functional/test_s3.py Signed-off-by: Ali Maredia <amaredia@redhat.com>
11 lines
401 B
Python
11 lines
401 B
Python
from nose.tools import eq_ as eq
|
|
|
|
import utils
|
|
|
|
def test_generate():
|
|
FIVE_MB = 5 * 1024 * 1024
|
|
eq(len(''.join(utils.generate_random(0))), 0)
|
|
eq(len(''.join(utils.generate_random(1))), 1)
|
|
eq(len(''.join(utils.generate_random(FIVE_MB - 1))), FIVE_MB - 1)
|
|
eq(len(''.join(utils.generate_random(FIVE_MB))), FIVE_MB)
|
|
eq(len(''.join(utils.generate_random(FIVE_MB + 1))), FIVE_MB + 1)
|