Fix __setitem__ and add another test

This commit is contained in:
Robin Dunn
2015-03-12 10:12:06 -07:00
parent b3089a52e8
commit 3a44ba8f0b
2 changed files with 8 additions and 2 deletions

View File

@@ -190,6 +190,12 @@ class richtextbuffer_Tests(wtc.WidgetTestCase):
self.assertEqual(start, 111)
self.assertEqual(end, 222)
def test_richtextbuffer14e(self):
r = wx.richtext.RichTextRange()
self.assertEqual(r.Get(), (0,0))
r[0] = 111
r[1] = 222
self.assertEqual(r.Get(), (111,222))
def test_richtextbuffer15(self):