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, 3 insertions, 1 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py
index 3bb2746..092a8ec 100644
--- a/tests/test_gio.py
+++ b/tests/test_gio.py
@@ -25,10 +25,11 @@ class TestInputStream(unittest.TestCase):
def callback(stream, result):
read = stream.read_finish(result)
self.assertEquals(read, len("testing"))
+ self.assertEquals(result.get_buffer(), "testing")
stream.close()
loop.quit()
- self.stream.read_async(10240, 0, None, callback)
+ self.stream.read_async(7, 0, None, callback)
loop = gobject.MainLoop()
loop.run()
@@ -36,6 +37,7 @@ class TestInputStream(unittest.TestCase):
def testReadAsyncError(self):
self.count = 0
def callback(stream, result):
+ #self.assertEquals(result.get_buffer(), None)
self.count += 1
if self.count == 1:
return