[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Checking that cached extrainfo is all recognized
commit 1b2ebb2d6624de2133f58386d0b66a0e0da6b962
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits