def test_WFMXHeader_succesful(num_samples, markers_included): xmlstr = AWG70000A._makeWFMXFileHeader(num_samples, markers_included) etree.parse(StringIO(xmlstr))
def test_WFMXHeader_failing(num_samples, markers_included): with pytest.raises(ValueError): AWG70000A._makeWFMXFileHeader(num_samples, markers_included)