ICON Community Interface
0.4.0
Loading...
Searching...
No Matches
plugins
python_adapter
test
exceptions.py
Go to the documentation of this file.
1
import
comin
2
3
try
:
4
comin.callback_get_ep_name(666)
5
assert
False
,
"No Exception was raised"
6
except
comin.ComInError
as
exc:
7
comin.print_info(f
"Check successful: {exc}"
)
8
9
10
@comin.EP_SECONDARY_CONSTRUCTOR
11
def
sec_ctr
():
12
# register_callback after primary constructor
13
try
:
14
15
@comin.EP_ATM_TIMELOOP_START
16
def
foo():
17
print(
"bar"
)
18
19
assert
False
,
"No Exception was raised"
20
except
comin.ComInError
as
exc:
21
comin.print_info(f
"Check successful: {exc}"
)
22
23
24
@comin.EP_ATM_TIMELOOP_BEFORE
25
def
time_loop_start
():
26
try
:
27
metadata =
comin.metadata
((
"foobar"
, 12))
28
comin.print_info(dict(metadata))
29
assert
False
,
"No Exception was raised"
30
except
comin.ComInError
as
exc:
31
comin.print_info(f
"Check successful: {exc}"
)
comin.metadata
Definition
comin.py:195
exceptions.time_loop_start
time_loop_start()
Definition
exceptions.py:25
exceptions.sec_ctr
sec_ctr()
Definition
exceptions.py:11
Generated by
1.11.0