[tor-bugs] #7499 [Stem]: Unit test bug - mocking.py:_get_descriptor_content() handlign of 'opt' keyword
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Nov 17 20:30:48 UTC 2012
#7499: Unit test bug - mocking.py:_get_descriptor_content() handlign of 'opt'
keyword
--------------------+-------------------------------------------------------
Reporter: eoinof | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: | Parent:
Points: | Actualpoints:
--------------------+-------------------------------------------------------
Comment(by atagar):
Right on all counts. However, this would only pose a problem if a test
tried to include multiple 'opt' lines, and none of the server_descriptor
unit tests do.
Maybe we should simply note in get_relay_server_descriptor() and
get_bridge_extrainfo_descriptor() pydocs that to have multiple opt lines
the caller should omit the 'opt' keyword then call replace(keyword + ' ',
'opt %s ' % keyword) on the returned result?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7499#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list