def test_valid_pvname(): with pytest.raises(epics_utils.BadPVName): epics_utils.validate_pv_name('this.will.fail')