meejah / txtorcon

Twisted-based asynchronous Tor control protocol implementation. Includes unit-tests, examples, state-tracking code and configuration abstraction.
http://fjblvrw2jrxnhtg67qpbzi45r7ofojaoo3orzykesly2j3c2m3htapid.onion/
MIT License
250 stars 72 forks source link

Endpoint tests and refactor #137

Closed meejah closed 8 years ago

meejah commented 9 years ago

This started out as making a test for the "success" path, but I ended up re-factoring the TorClientEndpoint to eliminate some state and use @inlineCallbacks instead of several _private_methods

Also some CamelCase to snake_case for function names etc.

@david415 what do you think?

david415 commented 8 years ago

looks good to me!