Ejemplo n.º 1
0
class TestEditor(unittest.TestCase):
    def setUp(self):
        self.editor = Editor()

    #def test_switch_to_previous_view(self):
    #    pass

    #def test_switch_to_next_view(self):
    #    pass

    #def test_cancel_search(self):
    #    pass

    def test_undo(self):
        pass

    def test_redo(self):
        pass

    def test_get_next_title(self):
        assert self.editor.get_next_title() == 'UNTITLED 1'
        assert self.editor.get_next_title() == 'UNTITLED 2'
        assert self.editor.get_next_title() == 'UNTITLED 3'
Ejemplo n.º 2
0
 def setUp(self):
     self.editor = Editor()