From 08ffc0f71c61b72e08bf0327e376b087ca030292 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Tue, 18 Oct 2011 16:56:25 +0200 Subject: [PATCH] Use addprotocol to that the protocol tests can pass options at instanciation --- wsme/tests/protocol.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wsme/tests/protocol.py b/wsme/tests/protocol.py index f03a1cf..dc093e1 100644 --- a/wsme/tests/protocol.py +++ b/wsme/tests/protocol.py @@ -217,9 +217,12 @@ class WSTestRoot(WSRoot): class ProtocolTestCase(unittest.TestCase): + protocol_options = {} + def setUp(self): if self.__class__.__name__ != 'ProtocolTestCase': - self.root = WSTestRoot([self.protocol]) + self.root = WSTestRoot() + self.root.addprotocol(self.protocol, **self.protocol_options) self.app = TestApp(wsme.wsgi.adapt(self.root))