Revision 42c9ed6e snf-pithos-app/pithos/api/test/objects.py
b/snf-pithos-app/pithos/api/test/objects.py | ||
---|---|---|
1520 | 1520 |
block_size = pithos_settings.BACKEND_BLOCK_SIZE |
1521 | 1521 |
oname, odata = self.upload_object( |
1522 | 1522 |
self.container, length=random.randint( |
1523 |
block_size + 1, 2 * block_size))[:2]
|
|
1523 |
block_size + 2, 2 * block_size))[:2]
|
|
1524 | 1524 |
|
1525 | 1525 |
length = len(odata) |
1526 | 1526 |
first_byte_pos = random.randint(1, block_size) |
Also available in: Unified diff