From 9a2ae29dae29ce26f0160ca7c94fe629b25446fb Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 29 Jul 2004 09:18:53 +0000 Subject: Use gobject.type_name,type_from_name for testing instead of GtkListStore. * tests/gtype.py (GTypeTest.checkType): Use gobject.type_name,type_from_name for testing instead of GtkListStore. --- tests/enum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/enum.py') diff --git a/tests/enum.py b/tests/enum.py index 5cc18ac..98dbd89 100644 --- a/tests/enum.py +++ b/tests/enum.py @@ -143,7 +143,7 @@ class FlagsTest(unittest.TestCase): assert isinstance(klass.__flags_values__, dict) assert len(klass.__flags_values__) >= 3 - def testComparision(self): + def testEnumComparision(self): enum = gtk.TREE_VIEW_DROP_BEFORE assert enum == 0 assert not enum == 10 @@ -158,7 +158,7 @@ class FlagsTest(unittest.TestCase): assert enum <= 0 assert enum <= 10 - def testComparision(self): + def testFlagComparision(self): flag = gdk.EXPOSURE_MASK assert flag == 2 assert not flag == 10 -- cgit