Skip to content

Commit

Permalink
Full coverage tests for Minghe MHS5200a (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
trappitsch authored Nov 5, 2020
1 parent f2da132 commit 9865a69
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions instruments/tests/test_minghe/test_minghe_mhs5200a.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,31 @@ def test_mhs_serial_number():
sep="\r\n"
) as mhs:
assert mhs.serial_number == "5225A1"


def test_mhs_get_amplitude():
"""Raise NotImplementedError when trying to get amplitude"""
with expected_protocol(
ik.minghe.MHS5200,
[
],
[
],
sep="\r\n"
) as mhs:
with pytest.raises(NotImplementedError):
mhs._get_amplitude_()


def test_mhs_set_amplitude():
"""Raise NotImplementedError when trying to set amplitude"""
with expected_protocol(
ik.minghe.MHS5200,
[
],
[
],
sep="\r\n"
) as mhs:
with pytest.raises(NotImplementedError):
mhs._set_amplitude_(1, 2)

0 comments on commit 9865a69

Please sign in to comment.