1 2 3 4 5
@when('config.changed.foo') @when_not('config.default.foo') def handle_non_default_foo(): # this will run only once, when the value of the "foo" option # is changed to something other than the default