Debian Codegraph @

examples/power/power_example.py

raw symbols SCIP
1 import pytest
2
3
4 @pytest.fixture()
5 def pdu(target):
6 return target.get_driver("NetworkPowerDriver")
7
8
9 def test_something(pdu):
10 pdu.on()
11 # Note that the pdu might not have switched on when requesting it's
12 # status immediately
13 assert pdu.get() is True
14
15 # ... do something
16
17 pdu.off()
18 assert pdu.get() is False