Exemple #1
0
    def test_pointer_struct_inout(self):
        in_struct = GIMarshallingTests.PointerStruct()
        in_struct.long_ = 42

        out_struct = GIMarshallingTests.pointer_struct_inout(in_struct)

        self.assertTrue(isinstance(out_struct, GIMarshallingTests.PointerStruct))
        self.assertEquals(0, out_struct.long_)

        del in_struct
        del out_struct