commit a8b20adb7044971935380b4170254c1c2d7f2051 Author: Sean Robinson seankrobinson@gmail.com Date: Sun Dec 9 08:37:54 2012 -0700
Improve tests for close_circuit exceptions
Signed-off-by: Sean Robinson seankrobinson@gmail.com --- test/integ/control/controller.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/test/integ/control/controller.py b/test/integ/control/controller.py index 56558ea..b2a9ffd 100644 --- a/test/integ/control/controller.py +++ b/test/integ/control/controller.py @@ -518,7 +518,8 @@ class TestController(unittest.TestCase): self.assertFalse(circ_id in circ)
circ_id = controller.new_circuit() - self.assertRaises(stem.InvalidRequest, controller.close_circuit, circ_id + 1024) + self.assertRaises(stem.InvalidArguments, controller.close_circuit, circ_id + 1024) + self.assertRaises(stem.InvalidRequest, controller.close_circuit, "")
def test_mapaddress(self): if test.runner.require_control(self): return
tor-commits@lists.torproject.org