def test_setReadOnly_to_true_sets_readonly_status(self): widget = CodeEditor(TEST_LANG) widget.setReadOnly(True) self.assertTrue(widget.isReadOnly())
def test_setReadOnly_to_true_sets_readonly_status(self): widget = CodeEditor(TEST_LANG) widget.setReadOnly(True) self.assertTrue(widget.isReadOnly())
def test_default_construction_yields_editable_widget(self): widget = CodeEditor(TEST_LANG) self.assertFalse(widget.isReadOnly())
def test_default_construction_yields_editable_widget(self): widget = CodeEditor(TEST_LANG) self.assertFalse(widget.isReadOnly())