예제 #1
0
 def test_example_other_dynamic_button() -> None:
     """
     Test dynamic button example.
     """
     dynamic_button.add_dynamic_button()
     btn = dynamic_button.menu.get_selected_widget()
     btn.apply()
     dynamic_button.main(test=True)
     test_reset_surface()
예제 #2
0
 def test_example_other_dynamic_button_append(self) -> None:
     """
     Test dynamic button example.
     """
     btn = dynamic_button.add_dynamic_button()
     self.assertEqual(btn.get_counter_attribute('count'), 0)
     btn.apply()
     self.assertEqual(btn.get_counter_attribute('count'), 1)
     dynamic_button.main(test=True)