@staticmethod
def test_version_request():
    rc = utils.MockRequestContext()
    server = JSONRPCServer(None, None)
    server._handle_version_request(rc, None)
    rc.send_response.assert_called_once_with(server._version)
    rc.send_error.assert_not_called()
    rc.send_notification.assert_not_called()
@staticmethod
def test_version_request():
    rc = utils.MockRequestContext()
    server = JSONRPCServer(None, None)
    server._handle_version_request(rc, None)
    rc.send_response.assert_called_once_with(server._version)
    rc.send_error.assert_not_called()
    rc.send_notification.assert_not_called()