    def test_button_name1(self):
        """
        Check Button name can be set in the constructor.
        """
        def _on_click():
            pass

        btn = Button("Run", _on_click, name="btn_run")
        self.assertEqual(btn.name, "btn_run")
Check Button name can be set in the constructor.
tests/test_widgets.py