summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2009-06-08 11:45:11 +0200
committerGian Mario Tagliaretti <gianmt@gnome.org>2009-06-09 00:10:08 +0200
commitdfbdf23633a772e78b47b0e7b0c3e3b87855d9ff (patch)
tree415a9a91458c5d592ba80b4bdc450b4caadbdeab /tests
parentfcc3cb0e167789746a1a9db0cba54ea7a97c7259 (diff)
downloadpygobject-dfbdf23633a772e78b47b0e7b0c3e3b87855d9ff.tar.gz
pygobject-dfbdf23633a772e78b47b0e7b0c3e3b87855d9ff.tar.xz
pygobject-dfbdf23633a772e78b47b0e7b0c3e3b87855d9ff.zip
Wrap gio.memory_input_stream_new_from_data
Add the wrapper for gio.memory_input_stream_new_from_data including docs and a test.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gio.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py
index fb7360e..de5409f 100644
--- a/tests/test_gio.py
+++ b/tests/test_gio.py
@@ -759,6 +759,10 @@ class TestMemoryInputStream(unittest.TestCase):
self.stream.add_data(None)
self.stream.add_data('spam')
self.assertEquals('ham spam', self.stream.read())
+
+ def test_new_from_data(self):
+ stream = gio.memory_input_stream_new_from_data('spam')
+ self.assertEquals('spam', stream.read())
class TestOutputStream(unittest.TestCase):