def test_set_alias_default_02(self): from hackpage.utils import setAliasWithDialog Tester.dialogTester.appendCancel() setAliasWithDialog(self.testPage, self.application) self.assertEqual(self.testPage.alias, None) self.assertEqual(Tester.dialogTester.count, 0)
def test_set_alias_03(self): from hackpage.utils import setAliasWithDialog self.testPage.alias = 'Псевдоним страницы' Tester.dialogTester.append(self._setValue, '') setAliasWithDialog(self.testPage, self.application) self.assertEqual(self.testPage.alias, None) self.assertEqual(Tester.dialogTester.count, 0)
def __onSetPageAliasPopupClick(self, event): assert self._selectedPage is not None setAliasWithDialog(self._selectedPage, self._application) self._unbindPopupMenu() self._selectedPage = None
def run(self, params): setAliasWithDialog(self._application.selectedPage, self._application)