From f608f4bed42ce4b0eb9bef4c1ed84e36428a0809 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Sun, 21 Aug 2016 23:50:11 -0400 Subject: [PATCH] Fix radiobut test - SetValue(False) doesn't do anything so don't test that --- unittests/test_radiobut.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/unittests/test_radiobut.py b/unittests/test_radiobut.py index b3635184..1101938a 100644 --- a/unittests/test_radiobut.py +++ b/unittests/test_radiobut.py @@ -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) #---------------------------------------------------------------------------