Merge pull request #157 from swt2c/fix_radiobut_test

Fix radiobut test - SetValue(False) doesn't do anything so don't test…
This commit is contained in:
Robin Dunn
2016-08-23 18:11:28 -07:00
committed by GitHub

View File

@@ -15,11 +15,14 @@ class radiobut_Tests(wtc.WidgetTestCase):
b.Create(self.frame, label="radiobutton")
def test_radiobutValue(self):
b = wx.RadioButton(self.frame, label='radiobutton')
b = wx.RadioButton(self.frame, label='radiobutton', style=wx.RB_GROUP)
b1 = wx.RadioButton(self.frame, label='radiobutton1')
b1.Value = True
self.assertTrue(b.GetValue() == False)
self.assertTrue(b1.GetValue() == True)
b.Value = True
self.assertTrue(b.GetValue() == True)
b.Value = False
self.assertTrue(b.GetValue() == False)
self.assertTrue(b1.GetValue() == False)
#---------------------------------------------------------------------------