def test_toggleShow(self): app = App() page = Page(app) self.assertEqual(False, page.isPacked()) page.toggleShow(mainloop=False) self.assertEqual(True, page.isPacked()) page.toggleShow(mainloop=False) self.assertEqual(False, page.isPacked())
def test_states(self): app = App() page = Page(app) self.assertEqual(False, page.isShown()) self.assertEqual(True, page.exists()) self.assertEqual(False, page.isPacked()) page.show(mainloop=False) self.assertEqual(True, page.isShown()) self.assertEqual(True, page.exists()) self.assertEqual(True, page.isPacked()) page.hide() self.assertEqual(False, page.isShown()) self.assertEqual(True, page.exists()) self.assertEqual(False, page.isPacked()) page.remove() self.assertEqual(False, page.isShown(error=False)) self.assertEqual(False, page.exists()) self.assertEqual(False, page.isPacked())