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:
Laurens Valk 2022-11-24 09:06:49 +01:00
parent 2fcd93cdd0
commit 5588647ad2
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -1,2 +1,3 @@
<module 'cexample'> <module 'cexample'>
cexample
4 4