def test_add_shutdown_handler(self):
    handler = mock.MagicMock()
    server = JSONRPCServer(None, None)
    server.add_shutdown_handler(handler)
    self.assertTrue((handler in server._shutdown_handlers))
def test_add_shutdown_handler(self):
    handler = mock.MagicMock()
    server = JSONRPCServer(None, None)
    server.add_shutdown_handler(handler)
    self.assertTrue((handler in server._shutdown_handlers))