summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurens Valk <laurens@pybricks.com>2022-11-24 09:06:49 +0100
committerLaurens Valk <laurens@pybricks.com>2022-11-25 08:13:15 +0100
commit5588647ad28ea51682fafab50b95ae9f161d18fe (patch)
tree915cbe19e57ce2255682aa90c80b36ef7a7a66f9
parent2fcd93cdd0cf33a83346eb4a6ed47ec1404a985b (diff)
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>
-rw-r--r--tests/misc/cexample_module.py2
-rw-r--r--tests/misc/cexample_module.py.exp1
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/misc/cexample_module.py b/tests/misc/cexample_module.py
index cf1d46f75..c1da2ecf7 100644
--- a/tests/misc/cexample_module.py
+++ b/tests/misc/cexample_module.py
@@ -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))
diff --git a/tests/misc/cexample_module.py.exp b/tests/misc/cexample_module.py.exp
index 81fcc2f2d..bb305060e 100644
--- a/tests/misc/cexample_module.py.exp
+++ b/tests/misc/cexample_module.py.exp
@@ -1,2 +1,3 @@
<module 'cexample'>
+cexample
4