summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2010-01-03 11:02:57 +0100
committerGian Mario Tagliaretti <gianmt@gnome.org>2010-01-03 11:02:57 +0100
commit284a1e1c0143c95d3007cf58e6c248b5d11fb4d1 (patch)
treee99b08e7c68333f322980d039a9375b7641df65f /tests
parent82d7bcbf37200ee2ef5892dd12bebd2f39965c56 (diff)
downloadpygobject-284a1e1c0143c95d3007cf58e6c248b5d11fb4d1.tar.gz
pygobject-284a1e1c0143c95d3007cf58e6c248b5d11fb4d1.tar.xz
pygobject-284a1e1c0143c95d3007cf58e6c248b5d11fb4d1.zip
Wrap gio.Cancellable.make_pollfd() and add a test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gcancellable.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_gcancellable.py b/tests/test_gcancellable.py
new file mode 100644
index 0000000..7a0f94b
--- /dev/null
+++ b/tests/test_gcancellable.py
@@ -0,0 +1,15 @@
+# -*- Mode: Python -*-
+
+import os
+import unittest
+
+from common import gio, glib
+
+
+class TestResolver(unittest.TestCase):
+ def setUp(self):
+ self.cancellable = gio.Cancellable()
+
+ def test_make_poll_fd(self):
+ poll = self.cancellable.make_pollfd()
+ self.failUnless(isinstance(poll, glib.PollFD))