def test_main_update(): b = -3 P = presets.Preset(preset_test) P['b'] = b eq_(preset_test.mult(4, b=b), P.mult(4)) P['b'] = b + 10 eq_(preset_test.mult(4, b=b+10), P.mult(4))
def test_main_update(): b = -3 P = presets.Preset(preset_test) P['b'] = b assert preset_test.mult(4, b=b) == P.mult(4) P['b'] = b + 10 assert preset_test.mult(4, b=b+10) == P.mult(4)
def test_revert(): b = -3 P = presets.Preset(preset_test) P['b'] = b del P['b'] assert preset_test.mult(4) == P.mult(4)
def test_revert(): b = -3 P = presets.Preset(preset_test) P['b'] = b del P['b'] eq_(preset_test.mult(4), P.mult(4))
def test_main_default(): P = presets.Preset(preset_test) assert preset_test.mult(4) == P.mult(4)
def test_user_override(): b = -3 P = presets.Preset(preset_test) P['b'] = b assert preset_test.mult(4, b=10 + b) == P.mult(4, b=10 + b)
def test_main_override(): b = -3 P = presets.Preset(preset_test) P['b'] = b assert preset_test.mult(4, b=b) == P.mult(4)
def test_main_default(): P = presets.Preset(preset_test) eq_(preset_test.mult(4), P.mult(4))
def test_user_override(): b = -3 P = presets.Preset(preset_test) P['b'] = b eq_(preset_test.mult(4, b=10 + b), P.mult(4, b=10 + b))
def test_main_override(): b = -3 P = presets.Preset(preset_test) P['b'] = b eq_(preset_test.mult(4, b=b), P.mult(4))