From dfbdf23633a772e78b47b0e7b0c3e3b87855d9ff Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Mon, 8 Jun 2009 11:45:11 +0200 Subject: Wrap gio.memory_input_stream_new_from_data Add the wrapper for gio.memory_input_stream_new_from_data including docs and a test. --- tests/test_gio.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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): -- cgit