[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Fix lengths of base64 fields in unittests for parseRLine().



commit 53b6d4e3d6e66c3b78e5a6b975f9ed7ab5c3a728
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Wed Dec 11 03:20:24 2013 +0000

    Fix lengths of base64 fields in unittests for parseRLine().
    
    In real `@type bridge-networkstatus` documents, the base64 fields are 27
    characters in length, not 29 characters.
---
 lib/bridgedb/test/test_parse_networkstatus.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/test/test_parse_networkstatus.py b/lib/bridgedb/test/test_parse_networkstatus.py
index 9e82b25..9b17462 100644
--- a/lib/bridgedb/test/test_parse_networkstatus.py
+++ b/lib/bridgedb/test/test_parse_networkstatus.py
@@ -51,12 +51,12 @@ class ParseNetworkStatusRLineTests(unittest.TestCase):
     #: A base64-encoded, SHA-1 digest of the DER-formatted, ASN.1-encoded,
     #: public portion of an OR identity key, with any trailing base64 padding
     #: (any '=' characters) removed.
-    ident = 'bXw2N1K9AAKR5undPaTgNUySNxI'
+    ident = 'bXw2N1K9AAKR5undPaTgNUySN'
     #: A base64-encoded, SHA-1 digest of the OR
     #: `@type-[bridge-]server-descriptor` document (the whole thing, up until
     #: the 'router signature' line, but not including the signature thereafter),
     #: with any trailing base64 padding (any '=' characters) removed.
-    desc  = 'Z6cisoPT9s6hEd4JkHFAlIWAwXQ'
+    desc  = 'Z6cisoPT9s6hEd4JkHFAlIWAw'
     #: An ISO-8661 formatted timestamp, with a space separator (rather than a
     #: 'T' character).
     ts    = '2013-10-31 15:15:15'



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits