diff options
| author | Johan Dahlin <johan@gnome.org> | 2008-01-20 15:57:44 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2008-01-20 15:57:44 +0000 |
| commit | 8c31e35473f8d50cbb3cb832029f5ddc64022649 (patch) | |
| tree | 074408b1b0327205443b7e86d0962b80e1f6b320 /tests | |
| parent | 3d0d2b4d1683606b03ddcae727349c055d28d2d9 (diff) | |
| download | pygobject-8c31e35473f8d50cbb3cb832029f5ddc64022649.tar.gz pygobject-8c31e35473f8d50cbb3cb832029f5ddc64022649.tar.xz pygobject-8c31e35473f8d50cbb3cb832029f5ddc64022649.zip | |
New test
2008-01-20 Johan Dahlin <johan@gnome.org>
* tests/test_gio.py (TestVolumeMonitor): New test
svn path=/trunk/; revision=743
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_gio.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index 1b8c5fe..d083361 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -67,3 +67,19 @@ class TestOutputStream(unittest.TestCase): self.failUnless(os.path.exists("outputstream.txt")) self.assertEquals(open("outputstream.txt").read(), "testing") + +class TestVolumeMonitor(unittest.TestCase): + def setUp(self): + self.monitor = gio.volume_monitor_get() + + def testGetConnectedDrives(self): + drives = self.monitor.get_connected_drives() + self.failUnless(isinstance(drives, list)) + + def testGetVolumes(self): + volumes = self.monitor.get_volumes() + self.failUnless(isinstance(volumes, list)) + + def testGetMounts(self): + mounts = self.monitor.get_mounts() + self.failUnless(isinstance(mounts, list)) |
