summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-01-20 15:57:44 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-01-20 15:57:44 +0000
commit8c31e35473f8d50cbb3cb832029f5ddc64022649 (patch)
tree074408b1b0327205443b7e86d0962b80e1f6b320
parent3d0d2b4d1683606b03ddcae727349c055d28d2d9 (diff)
downloadpygobject-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
-rw-r--r--ChangeLog2
-rw-r--r--tests/test_gio.py16
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 41853f3..4d1b35b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2008-01-20 Johan Dahlin <johan@gnome.org>
+ * tests/test_gio.py (TestVolumeMonitor): New test
+
* gio/Makefile.am:
* gio/ginputstream.override:
* gio/gio.override:
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))