bind: add test script for interfaces

Change-Id: Iba3902544ebf5e1d0a7846803bcb628518334f7b
This commit is contained in:
Sebastien Binet 2015-08-14 13:31:28 +02:00
parent d4e4779d2f
commit 6d80c41494
1 changed files with 20 additions and 0 deletions

20
_examples/iface/test.py Normal file
View File

@ -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)