def test_bottom_up_draw(self):
        """
        Tests that the manager's size is modified
        if we set a new size to the widget.
        """
        self.container.content[0].width = 60
        self.container.content[0].height = 60
        self.container.content[0].parent.reset_size()

        # manager width was set
        self.assertEqual(self.manager.width, 110 + self.container.padding)
        # container height was set
        self.assertEqual(self.container.height, 60)

        # container and manager were re-centered in the window
        self.assertEqual(self.container.x, self.window.width//2 - self.container.width//2)
        self.assertEqual(self.manager.y, self.window.height//2 - self.manager.height//2)

        self._test_content_position()
dataset/ETHPy150Open jorgecarleitao/pyglet-gui/tests/test_horizontal_container.py/TestHorizontalContainer.test_bottom_up_draw/original