Add unittest for wx.SearchCtrl [Get|Set]Value

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-03-08 04:02:36 +00:00
parent 3a5ce237de
commit 4f0ecca13e

View File

@@ -31,6 +31,12 @@ class srchctrl_Tests(wtc.WidgetTestCase):
self.frame.Bind(wx.EVT_SEARCHCTRL_SEARCH_BTN, lambda e: None, t)
def test_srchctrlGetSetValue(self):
t = wx.SearchCtrl(self.frame)
t.SetValue('Hello')
self.assertEqual(t.GetValue(), 'Hello')
self.assertEqual(t.Value, 'Hello')
#---------------------------------------------------------------------------