def testFeatureWithInvalidRemove(self): with pytest.raises(SystemExit): makeSetup(features={'x':Feature('x', remove='y')})