blob: 59a0f1f767e2b39f9cd2d6766f22b1873fe9292e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import typename
import types
f = typename.Foo()
b = typename.Bar()
x = typename.twoFoo(f)
if not isinstance(x,types.FloatType):
print "Wrong return type!"
y = typename.twoBar(b)
if not isinstance(y,types.IntType):
print "Wrong return type!"
|