Commit e1e59278 authored by Naoki Kambe's avatar Naoki Kambe
Browse files

Author: Naoki Kambe <>

--- log message follows this line ---
[trac698] added a test case "test___del__",
which tests __del__ function in cases that fake_session is still opened and that it has been already closed.
parent 4f42307f
......@@ -236,6 +236,13 @@ class TestModuleCCSession(unittest.TestCase):
self.assertEqual(None, fake_session._socket)
def test___del__(self):
fake_session = FakeModuleCCSession()
mccs = self.create_session("spec1.spec", None, None, fake_session)
mccs.__del__() # with opened fake_session
mccs.__del__() # with closed fake_session
def my_config_handler_ok(self, new_config):
return isc.config.ccsession.create_answer(0)
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