diff options
Diffstat (limited to 'lab_control/test/jds6600_test.py')
-rw-r--r-- | lab_control/test/jds6600_test.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lab_control/test/jds6600_test.py b/lab_control/test/jds6600_test.py index 45f841a..16deeb4 100644 --- a/lab_control/test/jds6600_test.py +++ b/lab_control/test/jds6600_test.py @@ -15,9 +15,9 @@ def mockDevice(): def uut(mockDevice): uut = JDS6600(mockDevice.getPortName()) yield uut - print("Cleaning up UUT") + uut.closePort() -def tes_serialConfiguration(mockDevice): +def test_serialConfiguration(mockDevice): with pytest.raises(AssertionError): mockDevice.checkPortConfiguration() @@ -27,7 +27,7 @@ def tes_serialConfiguration(mockDevice): def test_channelOnAndOff(uut, mockDevice): for ch in AVAILABLE_CHANNELS: assert not mockDevice.isOn(ch) - #uut.setOn(ch) - #assert mockDevice.isOn(ch) - #uut.setOff(ch) - #assert not mockDevice.isOn(ch) + uut.setOn(ch) + assert mockDevice.isOn(ch) + uut.setOff(ch) + assert not mockDevice.isOn(ch) |