##// END OF EJS Templates
test KernelManager.get_connection_info
MinRK -
Show More
@@ -438,7 +438,7 class ConnectionFileMixin(HasTraits):
438 stdin_port=self.stdin_port,
438 stdin_port=self.stdin_port,
439 hb_port=self.hb_port,
439 hb_port=self.hb_port,
440 control_port=self.control_port,
440 control_port=self.control_port,
441 signature_schme=self.session.signature_scheme,
441 signature_scheme=self.session.signature_scheme,
442 key=self.session.key,
442 key=self.session.key,
443 )
443 )
444
444
@@ -48,3 +48,14 class TestKernelManager(TestCase):
48 km = self._get_ipc_km()
48 km = self._get_ipc_km()
49 self._run_lifecycle(km)
49 self._run_lifecycle(km)
50
50
51 def test_get_connect_info(self):
52 km = self._get_tcp_km()
53 cinfo = km.get_connection_info()
54 keys = sorted(cinfo.keys())
55 expected = sorted([
56 'ip', 'transport',
57 'hb_port', 'shell_port', 'stdin_port', 'iopub_port', 'control_port',
58 'key', 'signature_scheme',
59 ])
60 self.assertEqual(keys, expected)
61
General Comments 0
You need to be logged in to leave comments. Login now