summaryrefslogtreecommitdiffstats
path: root/tests/test_gio.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_gio.py')
-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):