Commit d6c091d8 authored by Martin Pitt's avatar Martin Pitt
Browse files

Fix TestArrayGVariant test cases

test_array_gvariant_container_in() and test_array_gvariant_full_in() called
GIMarshallingTests.array_gvariant_none_in(), presumably a copy&paste error.
Actually do what they mean to do now and call the corresponding
GIMarshallingTests methods.
parent fda8a069
......@@ -795,12 +795,12 @@ class TestArrayGVariant(unittest.TestCase):
def test_array_gvariant_container_in(self):
v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
returned = [GLib.Variant.unpack(r) for r in GIMarshallingTests.array_gvariant_none_in(v)]
returned = [GLib.Variant.unpack(r) for r in GIMarshallingTests.array_gvariant_container_in(v)]
self.assertEqual([27, "Hello"], returned)
def test_array_gvariant_full_in(self):
v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
returned = [GLib.Variant.unpack(r) for r in GIMarshallingTests.array_gvariant_none_in(v)]
returned = [GLib.Variant.unpack(r) for r in GIMarshallingTests.array_gvariant_full_in(v)]
self.assertEqual([27, "Hello"], returned)
def test_bytearray_gvariant(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment