From 6d80c414944bfdd6632b6068d98805a6f67353fb Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Fri, 14 Aug 2015 13:31:28 +0200 Subject: [PATCH] bind: add test script for interfaces Change-Id: Iba3902544ebf5e1d0a7846803bcb628518334f7b --- _examples/iface/test.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _examples/iface/test.py diff --git a/_examples/iface/test.py b/_examples/iface/test.py new file mode 100644 index 0000000..4c88eb1 --- /dev/null +++ b/_examples/iface/test.py @@ -0,0 +1,20 @@ +# Copyright 2015 The go-python Authors. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +## py2/py3 compat +from __future__ import print_function + +import iface + +### test docs +print("doc(iface): %r" % (iface.__doc__,)) + +print("t = iface.T()") +t = iface.T() +print("t.F()") +t.F() + +print("iface.CallIface(t)") +iface.CallIface(t) +