commit fde59fcd4e7a02e1cdf55e37e92cac30de7e0af3 Author: Damian Johnson atagar@torproject.org Date: Fri Nov 21 10:09:15 2014 -0800
Fixing regression from previous DirectoryAuthority change
Shame on me. What good are tests if you don't run 'em?
Traceback (most recent call last): File "./run_tests.py", line 467, in <module> main() File "./run_tests.py", line 216, in main for test_class in test.util.get_unit_tests(args.specific_test): File "/home/atagar/Desktop/stem/test/util.py", line 125, in _get_tests module = __import__(module_name) File "/home/atagar/Desktop/stem/test/unit/descriptor/remote.py", line 10, in <module> import stem.descriptor.remote File "/home/atagar/Desktop/stem/stem/descriptor/remote.py", line 674, in <module> v3ident = 'D586D18309DED4CD6D57C18FDB97EFA96D330566', TypeError: __init__() got an unexpected keyword argument 'is_bandwidth_authority' --- stem/descriptor/remote.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/stem/descriptor/remote.py b/stem/descriptor/remote.py index 6a0fb6e..02f09d2 100644 --- a/stem/descriptor/remote.py +++ b/stem/descriptor/remote.py @@ -654,11 +654,12 @@ class DirectoryAuthority(object): :var str v3ident: identity key fingerprint used to sign votes and consensus """
- def __init__(self, nickname = None, address = None, or_port = None, dir_port = None, fingerprint = None, v3ident = None): + def __init__(self, nickname = None, address = None, or_port = None, dir_port = None, is_bandwidth_authority = False, fingerprint = None, v3ident = None): self.nickname = nickname self.address = address self.or_port = or_port self.dir_port = dir_port + self.is_bandwidth_authority = is_bandwidth_authority self.fingerprint = fingerprint self.v3ident = v3ident