[pygobject] add test for bytearray variants
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] add test for bytearray variants
- Date: Wed, 2 Nov 2011 18:52:07 +0000 (UTC)
commit 4f637212f13b197a95c824967a58496b9e3b877c
Author: John (J5) Palmieri <johnp redhat com>
Date: Wed Nov 2 14:51:24 2011 -0400
add test for bytearray variants
tests/test_gi.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index c32cdab..0a9b1b2 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -782,6 +782,10 @@ class TestArray(unittest.TestCase):
v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
self.assertEquals([27, "Hello"], map(GLib.Variant.unpack, GIMarshallingTests.array_gvariant_none_in(v)))
+ def test_bytearray_gvariant(self):
+ v = GLib.Variant.new_bytestring("foo")
+ self.assertEquals(v.get_bytestring(), "foo")
+
class TestGArray(unittest.TestCase):
def test_garray_int_none_return(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]