[Pkg-privacy-commits] [txtorcon] 42/96: be explicit about wanting warninigs

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Sep 6 18:33:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository txtorcon.

commit eec2a52152b5c0db35b74cda8d480b54c7b5c326
Author: meejah <meejah at meejah.ca>
Date:   Mon Feb 2 22:20:05 2015 -0700

    be explicit about wanting warninigs
    
    This also gets rid of one printed out during test-runs.
---
 test/test_torstate.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/test_torstate.py b/test/test_torstate.py
index a420ba0..4389b32 100644
--- a/test/test_torstate.py
+++ b/test/test_torstate.py
@@ -1050,7 +1050,7 @@ s Fast Guard Running Stable Valid
         ## it's in the running Tor's notion of Entry Guards
         path[0].flags = ['guard']
 
-        self.state.build_circuit(path)
+        self.state.build_circuit(path, using_guards=True)
         self.assertEqual(self.transport.value(), 'EXTENDCIRCUIT 0 0000000000000000000000000000000000000000,0000000000000000000000000000000000000001,0000000000000000000000000000000000000002\r\n')
         ## should have gotten a warning about this not being an entry
         ## guard
@@ -1061,7 +1061,7 @@ s Fast Guard Running Stable Valid
         self.assertEqual(self.transport.value(), 'EXTENDCIRCUIT 0\r\n')
 
     def test_build_circuit_unfound_router(self):
-        self.state.build_circuit(routers=['AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'])
+        self.state.build_circuit(routers=['AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], using_guards=False)
         self.assertEqual(self.transport.value(), 'EXTENDCIRCUIT 0 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r\n')
 
     def circuit_callback(self, circ):
@@ -1084,7 +1084,7 @@ s Fast Guard Running Stable Valid
         ## FIXME TODO we should verify we get a circuit_new event for
         ## this circuit
 
-        d = self.state.build_circuit(path)
+        d = self.state.build_circuit(path, using_guards=True)
         d.addCallback(self.circuit_callback)
         self.assertEqual(self.transport.value(), 'EXTENDCIRCUIT 0 0000000000000000000000000000000000000000,0000000000000000000000000000000000000001,0000000000000000000000000000000000000002\r\n')
         self.send('250 EXTENDED 1234')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/txtorcon.git



More information about the Pkg-privacy-commits mailing list