diff options
| author | Johan Dahlin <jdahlin@async.com.br> | 2008-06-17 19:57:11 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2008-06-17 19:57:11 +0000 |
| commit | de5fce1737f04bfe525caeab390b55bd46037d67 (patch) | |
| tree | f36e8cf3b9bc1c876ee402c9b18f1504a2c49b56 /tests | |
| parent | ac00f4306e17c0f6685d657b5cd183c7171f14db (diff) | |
| download | pygobject-de5fce1737f04bfe525caeab390b55bd46037d67.tar.gz pygobject-de5fce1737f04bfe525caeab390b55bd46037d67.tar.xz pygobject-de5fce1737f04bfe525caeab390b55bd46037d67.zip | |
Sort out confusion between interfaces and objects, add test. Fixes #538601
2008-06-17 Johan Dahlin <jdahlin@async.com.br>
* gio/gio-types.defs:
* tests/test_gio.py:
Sort out confusion between interfaces and objects, add test.
Fixes #538601
svn path=/trunk/; revision=788
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_gio.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index e7387f1..a21eba7 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -235,7 +235,16 @@ class TestVolumeMonitor(unittest.TestCase): def testGetMounts(self): mounts = self.monitor.get_mounts() self.failUnless(isinstance(mounts, list)) - + if not mounts: + return + + self.failUnless(isinstance(mounts[0], gio.Mount)) + # Bug 538601 + icon = mounts[0].get_icon() + if not icon: + return + self.failUnless(isinstance(icon, gio.Icon)) + class TestThemedIcon(unittest.TestCase): def setUp(self): @@ -280,4 +289,4 @@ class TestAppInfo(unittest.TestCase): def testSimple(self): self.assertEquals(self.appinfo.get_description(), - "Custom definition for (null)") + "Custom definition for does-not-exist") |
