tests/misc/cexample_module: Test class presence.
Now that the Timer class has been merged in a separate pull request, this can be added to the module test too. Signed-off-by: Laurens Valk <laurens@pybricks.com>
This commit is contained in:
parent
2fcd93cdd0
commit
5588647ad2
@ -7,8 +7,10 @@ except ImportError:
|
|||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
print(cexample)
|
print(cexample)
|
||||||
|
print(cexample.__name__)
|
||||||
|
|
||||||
d = dir(cexample)
|
d = dir(cexample)
|
||||||
d.index("add_ints")
|
d.index("add_ints")
|
||||||
|
d.index("Timer")
|
||||||
|
|
||||||
print(cexample.add_ints(1, 3))
|
print(cexample.add_ints(1, 3))
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
<module 'cexample'>
|
<module 'cexample'>
|
||||||
|
cexample
|
||||||
4
|
4
|
||||||
|
Loading…
Reference in New Issue
Block a user