diff options
| author | Johan Dahlin <johan@src.gnome.org> | 2004-07-19 11:00:18 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2004-07-19 11:00:18 +0000 |
| commit | cfa02147247fa59b82eff91e2058d1488ff438e3 (patch) | |
| tree | 9790d37c327bef30c210d161a42dc020b25a759b /tests | |
| parent | fb6e18271f6dff9d1c4ef9f19019634371559585 (diff) | |
| download | pygobject-cfa02147247fa59b82eff91e2058d1488ff438e3.tar.gz pygobject-cfa02147247fa59b82eff91e2058d1488ff438e3.tar.xz pygobject-cfa02147247fa59b82eff91e2058d1488ff438e3.zip | |
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)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/.cvsignore | 1 | ||||
| -rw-r--r-- | tests/enum.py | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/.cvsignore b/tests/.cvsignore index 282522d..12664c7 100644 --- a/tests/.cvsignore +++ b/tests/.cvsignore @@ -1,2 +1,3 @@ Makefile Makefile.in +*.pyc 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) |
