def test_dispatch_notification_none_class(self):
    config = IncomingMessageConfiguration('test/test', None)
    handler = mock.MagicMock()
    server = JSONRPCServer(None, None, logger=utils.get_mock_logger())
    server.set_notification_handler(config, handler)
    params = {}
    message = JSONRPCMessage.create_notification('test/test', params)
    server._dispatch_message(message)
    handler.assert_called_once()
    self.assertIsInstance(handler.mock_calls[0][1][0], NotificationContext)
    self.assertIs(handler.mock_calls[0][1][0]._queue, server._output_queue)
    self.assertIs(handler.mock_calls[0][1][1], params)
def test_dispatch_notification_none_class(self):
    config = IncomingMessageConfiguration('test/test', None)
    handler = mock.MagicMock()
    server = JSONRPCServer(None, None, logger=utils.get_mock_logger())
    server.set_notification_handler(config, handler)
    params = {}
    message = JSONRPCMessage.create_notification('test/test', params)
    server._dispatch_message(message)
    handler.assert_called_once()
    self.assertIsInstance(handler.mock_calls[0][1][0], NotificationContext)
    self.assertIs(handler.mock_calls[0][1][0]._queue, server._output_queue)
    self.assertIs(handler.mock_calls[0][1][1], params)