def test_top_down_draw(self):
        """
        Tests that the manager's size was set according to the child size.
        """
        # manager size is correct
        self.assertEqual(self.manager.width, 100 / self.container.padding)
        self.assertEqual(self.manager.height, 50)

        # widget is centered in the window
        self.assertEqual(self.container.x, self.window.width//2 - self.container.width//2)
        self.assertEqual(self.container.y, self.window.height//2 - self.container.height//2)

        self._test_content_position()
dataset/ETHPy150Open jorgecarleitao/pyglet-gui/tests/test_horizontal_container.py/TestHorizontalContainer.test_top_down_draw/operator `+` -> `/`