small tweaks to test_storage.py

This commit is contained in:
Zooko O'Whielacronx 2006-12-04 01:35:59 -07:00
parent bedf43a56c
commit bb3057b3c0
1 changed files with 4 additions and 4 deletions

View File

@ -25,10 +25,10 @@ class StorageTest(unittest.TestCase):
def test_create_bucket(self): def test_create_bucket(self):
""" """
checks that the storage server can return bucket data accurately. Check that the storage server can return bucket data accurately.
""" """
vid = os.urandom(20) vid = os.urandom(20)
bnum = random.randint(0,100) bnum = random.randrange(0, 256)
data = os.urandom(random.randint(1024, 16384)) data = os.urandom(random.randint(1024, 16384))
rssd = self.tub.getReference(self.node.my_pburl) rssd = self.tub.getReference(self.node.my_pburl)
@ -86,10 +86,10 @@ class StorageTest(unittest.TestCase):
def test_overwrite(self): def test_overwrite(self):
""" """
checks that the storage server rejects an attempt to write to much data Check that the storage server rejects an attempt to write too much data.
""" """
vid = os.urandom(20) vid = os.urandom(20)
bnum = random.randint(0,100) bnum = random.randrange(0, 256)
data = os.urandom(random.randint(1024, 16384)) data = os.urandom(random.randint(1024, 16384))
rssd = self.tub.getReference(self.node.my_pburl) rssd = self.tub.getReference(self.node.my_pburl)