def test_new_manager_without_window(self): other_manager = Manager(Viewer(width=50, height=50), batch=self.batch, theme=self.theme) # confirm that a new manager without window starts # with no size self.assertTrue(other_manager.width, 0) # change the manager's window other_manager.window = self.window # confirm it has a size. self.assertEqual(self.manager.width, 50) # confirm it is in the correct position self.assertEqual(self.manager.x, self.window.width / 2 - self.manager.width / 2)