    def test_list_box_options(self):
        """
        Check setting listbox options works as expected.
        """
        # Create a dummy screen.
        screen = MagicMock(spec=Screen, colours=8, unicode_aware=True)
        canvas = Canvas(screen, 10, 40, 0, 0)

        # Create the form we want to test.
        form = Frame(canvas, canvas.height, canvas.width, has_border=False, can_scroll=False)
        layout = Layout([100], fill_frame=True)
        form.add_layout(layout)
        listbox = ListBox(2, [])
        options = [("P", 1), ("Q", 2), ("R", 3), ("S", 4)]
        listbox.options = options
        layout.add_widget(listbox)

        self.assertEqual(listbox.options, options)
Check setting listbox options works as expected.
tests/test_widgets.py