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>
pull/10072/head
Laurens Valk 2022-11-24 09:06:49 +01:00
rodzic 2fcd93cdd0
commit 5588647ad2
2 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -7,8 +7,10 @@ except ImportError:
raise SystemExit
print(cexample)
print(cexample.__name__)
d = dir(cexample)
d.index("add_ints")
d.index("Timer")
print(cexample.add_ints(1, 3))

Wyświetl plik

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