Beispiel #1
0
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))
Beispiel #2
0
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)
Beispiel #3
0
def test_revert():
    b = -3

    P = presets.Preset(preset_test)
    P['b'] = b
    del P['b']
    assert preset_test.mult(4) == P.mult(4)
Beispiel #4
0
def test_revert():
    b = -3

    P = presets.Preset(preset_test)
    P['b'] = b
    del P['b']
    eq_(preset_test.mult(4), P.mult(4))
Beispiel #5
0
def test_main_default():

    P = presets.Preset(preset_test)
    assert preset_test.mult(4) == P.mult(4)
Beispiel #6
0
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)
Beispiel #7
0
def test_main_override():
    b = -3

    P = presets.Preset(preset_test)
    P['b'] = b
    assert preset_test.mult(4, b=b) == P.mult(4)
Beispiel #8
0
def test_main_default():

    P = presets.Preset(preset_test)
    eq_(preset_test.mult(4), P.mult(4))
Beispiel #9
0
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))
Beispiel #10
0
def test_main_override():
    b = -3

    P = presets.Preset(preset_test)
    P['b'] = b
    eq_(preset_test.mult(4, b=b), P.mult(4))