‘myscript.py’ - Module

Testee data simulator.

Simulates hard-coded test results for the test of the tool chain itself, as reference probe for validation of the chain, and for test of base functions in case of derived classes.

Refer also to the probe simulators in other languages, when debug and step into the probe itself is required:

  • myscript.py - Python
  • myscript.sh - bash
  • myscript.pl - Perl
  • ffs.

Functions:

call_A_OK

epyunit.myscript.call_A_OK()[source]
# A: succeed: OK
EXIT:
0
STDOUT:
fromA
arbitrary output
arbitrary signalling OK string
arbitrary output
STDERR:

call_B_NOK

epyunit.myscript.call_B_NOK()[source]
# B: fail: NOK
EXIT:
0
STDOUT:
fromB
arbitrary output
arbitrary output
STDERR:
arbitrary signalling ERROR string

call_C_PRIO

epyunit.myscript.call_C_PRIO()[source]
# C: redundancy resolved by user defined priority: PRIO
EXIT:
0
STDOUT:
fromC
arbitrary output
arbitrary signalling OK string
arbitrary output
STDERR:
arbitrary signalling ERROR string

call_D_EXITOK

epyunit.myscript.call_D_EXITOK()[source]
# D: exit value: EXITOK
EXIT:
0
STDOUT:
fromD
arbitrary output
arbitrary signalling OK string
arbitrary output
STDERR:

call_E_EXITNOK

epyunit.myscript.call_E_EXITNOK()[source]
# E: exit value: EXITNOK
EXIT:
1
STDOUT:
fromE
arbitrary output
arbitrary signalling OK string
arbitrary output
STDERR:

call_F_EXIT7

epyunit.myscript.call_F_EXIT7()[source]
# F: exit value: EXIT7
EXIT:
7
STDOUT:
fromF
arbitrary output
arbitrary signalling NOK string
arbitrary output
STDERR:

call_G_EXIT8

epyunit.myscript.call_G_EXIT8()[source]
# G: exit value: EXIT8
EXIT:
8
STDOUT:
fromG
arbitrary output
arbitrary signalling NOK string
arbitrary output
STDERR:
arbitrary err output
arbitrary err signalling NOK string
arbitrary err output

call_H_EXIT9OK3NOK2

epyunit.myscript.call_H_EXIT9OK3NOK2()[source]
# H: exit value: EXIT9OK3NOK2
EXIT:
9
STDOUT:
fromH
OK
OK
OK
STDERR:
NOK
NOK

call_I_STDERRONLY

epyunit.myscript.call_I_STDERRONLY()[source]
# I: exit value: STDERRONLY
EXIT:
0
STDOUT:
STDERR:
fromI
NOK
NOK

call_DEFAULT

epyunit.myscript.call_DEFAULT()[source]
# DEFAULT: define: here succeed ‘–default-ok’: DEFAULT
EXIT:
123
STDOUT:
arbitrary output
STDERR: