pygobject r743 - in trunk: . tests



Author: johan
Date: Sun Jan 20 15:57:44 2008
New Revision: 743
URL: http://svn.gnome.org/viewvc/pygobject?rev=743&view=rev

Log:
2008-01-20  Johan Dahlin  <johan gnome org>

	* tests/test_gio.py (TestVolumeMonitor): New test



Modified:
   trunk/ChangeLog
   trunk/tests/test_gio.py

Modified: trunk/tests/test_gio.py
==============================================================================
--- trunk/tests/test_gio.py	(original)
+++ trunk/tests/test_gio.py	Sun Jan 20 15:57:44 2008
@@ -67,3 +67,19 @@
         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))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]