def setUpClass(cls):
     requires('gui')
     cls.root = Tk()
     cls.root.withdraw()
     editor = Editor(root=cls.root)
     cls.text = editor.text.text  # Test code does not need the wrapper.
     cls.formatter = pg.FormatParagraph(editor).format_paragraph_event
Exemplo n.º 2
0
 def test_init_close(self):
     instance = fp.FormatParagraph('editor')
     self.assertEqual(instance.editwin, 'editor')
     instance.close()
     self.assertEqual(instance.editwin, None)
Exemplo n.º 3
0
 def setUpClass(cls):
     requires('gui')
     cls.root = Tk()
     editor = Editor(root=cls.root)
     cls.text = editor.text.text
     cls.formatter = fp.FormatParagraph(editor).format_paragraph_event