def test_list_length_validation(mock_record):
    """List length validation check"""
    key = 'Numeric List Range Limit'

    mock_record[key] = [5, 6, 7]

    with pytest.raises(ValidationError):
        mock_record[key].append(8)

    with pytest.raises(ValidationError):
        mock_record[key] = []