mirror of https://github.com/Nonannet/pyhoff.git
Test modified to allow for in- and output digital terminals
This commit is contained in:
parent
7310e13a50
commit
7e7be77bac
|
@ -15,15 +15,16 @@ def test_terminal_plausib():
|
||||||
DigitalOutputTerminal,
|
DigitalOutputTerminal,
|
||||||
AnalogInputTerminal,
|
AnalogInputTerminal,
|
||||||
AnalogOutputTerminal]:
|
AnalogOutputTerminal]:
|
||||||
|
|
||||||
print('Terminal: ' + n)
|
print('Terminal: ' + n)
|
||||||
if issubclass(o, DigitalInputTerminal):
|
if issubclass(o, DigitalInputTerminal):
|
||||||
assert o.parameters.get('input_bit_width', 0) > 0
|
assert o.parameters.get('input_bit_width', 0) > 0
|
||||||
assert o.parameters.get('output_bit_width', 0) == 0
|
# assert o.parameters.get('output_bit_width', 0) == 0
|
||||||
assert o.parameters.get('input_word_width', 0) == 0
|
assert o.parameters.get('input_word_width', 0) == 0
|
||||||
assert o.parameters.get('output_word_width', 0) == 0
|
assert o.parameters.get('output_word_width', 0) == 0
|
||||||
|
|
||||||
if issubclass(o, DigitalOutputTerminal):
|
if issubclass(o, DigitalOutputTerminal):
|
||||||
assert o.parameters.get('input_bit_width', 0) == 0
|
# assert o.parameters.get('input_bit_width', 0) == 0
|
||||||
assert o.parameters.get('output_bit_width', 0) > 0
|
assert o.parameters.get('output_bit_width', 0) > 0
|
||||||
assert o.parameters.get('input_word_width', 0) == 0
|
assert o.parameters.get('input_word_width', 0) == 0
|
||||||
assert o.parameters.get('output_word_width', 0) == 0
|
assert o.parameters.get('output_word_width', 0) == 0
|
||||||
|
|
Loading…
Reference in New Issue