diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gcancellable.py | 15 |
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)) |