diff --git a/test/test_widget_button.py b/test/test_widget_button.py index e3c6ab6c..e44c6acd 100644 --- a/test/test_widget_button.py +++ b/test/test_widget_button.py @@ -346,3 +346,7 @@ def test_multiline(self) -> None: ['required', 'nice a test is', 'important', 'was very', 'amet this', 'dolor sit', 'lorem ipsum', 'required', 'nice a test is', 'important', 'was very']) self.assertLessEqual(abs(button.get_width() - button._get_max_container_width()), 2) + + # Taking button out from Frame must restore its container and reassemble wrap + f1.unpack(button) + self.assertEqual(button.get_overflow_lines(), ['important nice a test is required'])