summaryrefslogtreecommitdiff
path: root/tests/test_radiobutton.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2005-07-22 16:15:10 +0000
committerJohan Dahlin <johan@src.gnome.org>2005-07-22 16:15:10 +0000
commitb3322fc949bdbc28ce09aee1885fc312521eda2a (patch)
tree77ffbed9bf511e2b0e230480db96ef13ce996f9a /tests/test_radiobutton.py
parent9070f26cbba93cd2c9e30710ece5101fe3495891 (diff)
downloadpygtk-b3322fc949bdbc28ce09aee1885fc312521eda2a.tar.gz
Re-enable
* tests/test_radiobutton.py (RadioToolButtonTest): Re-enable * tests/test_dialog.py (MessageDialogTest.testSubclass): Add tests, for #311226.
Diffstat (limited to 'tests/test_radiobutton.py')
-rw-r--r--tests/test_radiobutton.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/tests/test_radiobutton.py b/tests/test_radiobutton.py
index cf639588..98d86dd6 100644
--- a/tests/test_radiobutton.py
+++ b/tests/test_radiobutton.py
@@ -71,21 +71,20 @@ class RadioActionTest(RadioTest):
def newLabel(self, label):
return gtk.RadioAction('RadioAction', label, '', '', 0)
-# Depends on bug 309836
-# class RadioToolButtonTest(RadioTest):
-# widget_type = gtk.RadioToolButton
+class RadioToolButtonTest(RadioTest):
+ widget_type = gtk.RadioToolButton
-# def compareGroups(self, group1, group2):
-# # GtkRadioToolButton.set/get_groups return GtkRadioButtons,
-# # so instead of doing a normal cmp, compare ids
-# return cmp(map(id, group1), map(id, group2))
+ def compareGroups(self, group1, group2):
+ # GtkRadioToolButton.set/get_groups return GtkRadioButtons,
+ # so instead of doing a normal cmp, compare ids
+ return cmp(map(id, group1), map(id, group2))
-# def newLabel(self, label):
-# # We don't have a constructor for which we can pass in a label
-# # for, so just call set_label instead
-# radio = gtk.RadioToolButton(None)
-# radio.set_label(label)
-# return radio
+ def newLabel(self, label):
+ # We don't have a constructor for which we can pass in a label
+ # for, so just call set_label instead
+ radio = gtk.RadioToolButton(None)
+ radio.set_label(label)
+ return radio
class RadioMenuItem(RadioTest):
widget_type = gtk.RadioMenuItem