[tor-commits] [bridgedb/master] Fix test_Bucket.BucketDataTests to test `needed` attribute.
isis at torproject.org
isis at torproject.org
Tue Feb 3 02:31:01 UTC 2015
commit dadd800384358356542ccc49bbdad1ae54006cfc
Author: Isis Lovecruft <isis at torproject.org>
Date: Wed Aug 20 05:35:01 2014 +0000
Fix test_Bucket.BucketDataTests to test `needed` attribute.
---
lib/bridgedb/test/test_Bucket.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/bridgedb/test/test_Bucket.py b/lib/bridgedb/test/test_Bucket.py
index ab89fb4..cff8cb8 100644
--- a/lib/bridgedb/test/test_Bucket.py
+++ b/lib/bridgedb/test/test_Bucket.py
@@ -31,19 +31,19 @@ class BucketDataTest(unittest.TestCase):
def test_alloc_some_of_the_bridges(self):
"""Set the needed number of bridges"""
- alloc = 10
+ needed = 10
distname = "test-distributor"
bucket = Bucket.BucketData(distname, alloc)
- this(distname).should.be.equal(bucket.name)
- this(alloc).should.be.equal(bucket.needed)
+ this(bucket.name).should.be.equal(distname)
+ this(bucket.needed).should.be.equal(needed)
def test_alloc_all_the_bridges(self):
"""Set the needed number of bridges to the default"""
- alloc = '*'
+ needed = '*'
distname = "test-distributor"
bucket = Bucket.BucketData(distname, alloc)
- this(distname).should.be.equal(bucket.name)
- this(alloc).should.be.equal(1000000)
+ this(bucket.name).should.be.equal(distname)
+ this(bucket.needed).should.be.equal(needed)
class BucketManagerTest(unittest.TestCase):
More information about the tor-commits
mailing list