From cfa02147247fa59b82eff91e2058d1488ff438e3 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 19 Jul 2004 11:00:18 +0000 Subject: Update, why do I even bother to update 3 different build systems? * gobject/Makefile.am: * setup.py: * makefile.msc: Update, why do I even bother to update 3 different build systems? * gobject/: Split out GParamSpec, GMainLoop, GMainContext and GPointer to separate files. Also remove *.h files and go back to the old scheme (everything in pygobject.h) --- tests/enum.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/enum.py') diff --git a/tests/enum.py b/tests/enum.py index 11b73ea..ed9b98f 100644 --- a/tests/enum.py +++ b/tests/enum.py @@ -44,6 +44,15 @@ class EnumTest(unittest.TestCase): obj = atk.NoOpObject(gobject.GObject()) assert obj.get_role() == atk.ROLE_INVALID + def testGParam(self): + win = gtk.Window() + enums = filter(lambda x: gobject.type_is_a(x.value_type, gobject.GEnum), + gobject.list_properties(win)) + assert enums + enum = enums[0] + assert hasattr(enum, 'enum_class') + assert issubclass(enum.enum_class, gobject.GEnum) + class FlagsTest(unittest.TestCase): def testFlags(self): assert issubclass(gobject.GFlags, int) -- cgit