]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
small tweaks to test_storage.py
authorZooko O'Whielacronx <zooko@zooko.com>
Mon, 4 Dec 2006 08:35:59 +0000 (01:35 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Mon, 4 Dec 2006 08:35:59 +0000 (01:35 -0700)
allmydata/test/test_storage.py

index d1444f981c9ad45ffbb1e204f50e9ef9d292af30..6e7b57d1a2231397c861e0890c3e15663fe01329 100644 (file)
@@ -25,10 +25,10 @@ class StorageTest(unittest.TestCase):
 
     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)
-        bnum = random.randint(0,100)
+        bnum = random.randrange(0, 256)
         data = os.urandom(random.randint(1024, 16384))
 
         rssd = self.tub.getReference(self.node.my_pburl)
@@ -86,10 +86,10 @@ class StorageTest(unittest.TestCase):
 
     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)
-        bnum = random.randint(0,100)
+        bnum = random.randrange(0, 256)
         data = os.urandom(random.randint(1024, 16384))
 
         rssd = self.tub.getReference(self.node.my_pburl)