Exemplo n.º 1
0
 def test_create_editor(self):
     """ Does creating an editor work?
     """
     area = EditorAreaPane()
     area.register_factory(Editor, lambda obj: isinstance(obj, int))
     self.assert_(isinstance(area.create_editor(0), Editor))
Exemplo n.º 2
0
 def test_create_editor(self):
     """ Does creating an editor work?
     """
     area = EditorAreaPane()
     area.register_factory(Editor, lambda obj: isinstance(obj, int))
     self.assertTrue(isinstance(area.create_editor(0), Editor))