diff options
| author | Laurens Valk <laurens@pybricks.com> | 2022-11-24 09:06:49 +0100 |
|---|---|---|
| committer | Laurens Valk <laurens@pybricks.com> | 2022-11-25 08:13:15 +0100 |
| commit | 5588647ad28ea51682fafab50b95ae9f161d18fe (patch) | |
| tree | 915cbe19e57ce2255682aa90c80b36ef7a7a66f9 /tests/misc/cexample_module.py | |
| parent | 2fcd93cdd0cf33a83346eb4a6ed47ec1404a985b (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>
Diffstat (limited to 'tests/misc/cexample_module.py')
| -rw-r--r-- | tests/misc/cexample_module.py | 2 |
1 files changed, 2 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)) |
