diff options
author | Gian Mario Tagliaretti <gianmt@gnome.org> | 2009-06-08 11:45:11 +0200 |
---|---|---|
committer | Gian Mario Tagliaretti <gianmt@gnome.org> | 2009-06-09 00:10:08 +0200 |
commit | dfbdf23633a772e78b47b0e7b0c3e3b87855d9ff (patch) | |
tree | 415a9a91458c5d592ba80b4bdc450b4caadbdeab /tests | |
parent | fcc3cb0e167789746a1a9db0cba54ea7a97c7259 (diff) | |
download | pygobject-dfbdf23633a772e78b47b0e7b0c3e3b87855d9ff.tar.gz |
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.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index fb7360e4..de5409fe 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): |