Skip to content

Commit 7e87af1

Browse files
committed
Add an add_modification_flag test to test invalid values
1 parent 3541bdf commit 7e87af1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

PythonScript/python_tests/tests/test_NotepadCallbackTestCase.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,5 +207,10 @@ def test_add_modification_flags(self):
207207
self.assertTrue(self.callbackCalled, "BEFOREDELETE test failed, callback not called")
208208
editor.setModEventMask(original_mask)
209209

210+
def test_add_modification_flags_invalid(self):
211+
with self.assertRaises(RuntimeError):
212+
notepad.addModificationFlags(0x800000)
213+
214+
210215

211216
suite = unittest.TestLoader().loadTestsFromTestCase(NotepadCallbackTestCase)

0 commit comments

Comments
 (0)