[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Add test case for missing BW read value
commit 97dc4108404a1c0f676845538a542f98085ffb4a
Author: Sean Robinson <seankrobinson@xxxxxxxxx>
Date: Fri Dec 14 14:34:59 2012 -0700
Add test case for missing BW read value
Signed-off-by: Sean Robinson <seankrobinson@xxxxxxxxx>
---
test/unit/response/events.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/test/unit/response/events.py b/test/unit/response/events.py
index 5422f50..595ae8c 100644
--- a/test/unit/response/events.py
+++ b/test/unit/response/events.py
@@ -338,6 +338,7 @@ class TestEvents(unittest.TestCase):
self.assertEqual(20, event.written)
self.assertEqual({'OR': '5', 'EXIT': '500'}, event.keyword_args)
+ self.assertRaises(ProtocolError, _get_event, "650 BW")
self.assertRaises(ProtocolError, _get_event, "650 BW 15")
self.assertRaises(ProtocolError, _get_event, "650 BW -15 25")
self.assertRaises(ProtocolError, _get_event, "650 BW 15 -25")
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits