def test_interface_set_stet_with_wrong_parameter(): interface = Interface() with pytest.raises(ValueError): interface.set_step_value(interface.INVALID_STEP)
def test_interface_set_step(): interface = Interface() interface.set_step_value('1') assert interface.step == 1