def METHOD_NAME(data: ContentHeadingEntry):
    """Test menu generation.
    :param data: The test data
    """
    width = 100
    heading = content_heading(obj=data.content, screen_w=width)
    heading_lines = 1
    line_parts = 1
    assert len(heading) == heading_lines
    first_line = heading[0]
    assert len(first_line) == line_parts
    first_line_part = heading[0][0]
    assert isinstance(first_line_part, CursesLinePart)
    assert len(first_line_part.string) == width + 1
    assert first_line_part.color == data.color
    assert first_line_part.column == 0
    assert data.heading in first_line_part.string