mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-23 03:38:41 +00:00
be9935ba1a
Add fails_on_rgw to tests not passing. Some tests from the master branch do not pass on the rgw yet. Others waiting on rgw tracker issues to be resolved. Signed-off-by: Ali Maredia <amaredia@redhat.com>
11 lines
408 B
Python
11 lines
408 B
Python
from nose.tools import eq_ as eq
|
|
|
|
from . 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)
|