[tor-commits] [stem/master] Dropping routers attribute from get_network_status_document_v2()

atagar at torproject.org atagar at torproject.org
Wed Aug 7 16:07:58 UTC 2013


commit 0a79385a89fabd14721ce3fd0e4a49c63c1c13da
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Aug 7 09:00:21 2013 -0700

    Dropping routers attribute from get_network_status_document_v2()
    
    We only have a single test using this mocking module function. The 'routers'
    attribute was both unused and unimplemented so simply dropping it. We can
    implement it later if we add a test that needs it.
---
 test/mocking.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/mocking.py b/test/mocking.py
index 35edf81..aebbaac 100644
--- a/test/mocking.py
+++ b/test/mocking.py
@@ -545,14 +545,13 @@ def get_key_certificate(attr = None, exclude = (), content = False):
     return stem.descriptor.networkstatus.KeyCertificate(desc_content, validate = True)
 
 
-def get_network_status_document_v2(attr = None, exclude = (), routers = None, content = False):
+def get_network_status_document_v2(attr = None, exclude = (), content = False):
   """
   Provides the descriptor content for...
   stem.descriptor.networkstatus.NetworkStatusDocumentV2
 
   :param dict attr: keyword/value mappings to be included in the descriptor
   :param list exclude: mandatory keywords to exclude from the descriptor
-  :param list routers: router status entries to include in the document
   :param bool content: provides the str content of the descriptor rather than the class if True
 
   :returns: NetworkStatusDocumentV2 for the requested descriptor content





More information about the tor-commits mailing list