[tor-commits] [stem/master] Checking that cached extrainfo is all recognized

atagar at torproject.org atagar at torproject.org
Mon May 14 00:14:27 UTC 2012


commit 1b2ebb2d6624de2133f58386d0b66a0e0da6b962
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun May 13 16:53:01 2012 -0700

    Checking that cached extrainfo is all recognized
    
    Asserting that there aren't any unrecognized extrainfo descriptor lines in the
    cached file to help catch new additions.
---
 test/integ/descriptor/extrainfo_descriptor.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/test/integ/descriptor/extrainfo_descriptor.py b/test/integ/descriptor/extrainfo_descriptor.py
index 99edfea..ea58807 100644
--- a/test/integ/descriptor/extrainfo_descriptor.py
+++ b/test/integ/descriptor/extrainfo_descriptor.py
@@ -79,9 +79,7 @@ k0d2aofcVbHr4fPQOSST0LXDrhFl5Fqo5um296zpJGvRUeO6S44U/EfJAGShtqWw
     RAN_CACHED_DESCRIPTOR_TEST = True
     with open(descriptor_path) as descriptor_file:
       for desc in stem.descriptor.extrainfo_descriptor.parse_file(descriptor_file):
-        # TODO: uncomment when we're done implementing the ExtraInfoDescriptor class
-        #unrecognized_lines = desc.get_unrecognized_lines()
-        unrecognized_lines = []
+        unrecognized_lines = desc.get_unrecognized_lines()
         
         if desc.dir_v2_responses_unknown:
           self.fail("Unrecognized statuses on dirreq-v2-resp lines: %s" % desc.dir_v2_responses_unknown)





More information about the tor-commits mailing list