Commit 4f42307f authored by Naoki Kambe's avatar Naoki Kambe

[trac698] changed group_unsubscribe

it raises SessionError if the session has been already closed.
parent afa5624c
......@@ -44,6 +44,11 @@ class FakeModuleCCSession:
self.subscriptions[group_name].append(instance_name)
def group_unsubscribe(self, group_name, instance_name = None):
# raises SessionError if the session has been already closed.
if self._closed:
raise isc.cc.SessionError("Session has been closed.")
if group_name in self.subscriptions:
if instance_name:
if len(self.subscriptions[group_name]) > 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment