def test_soft_update_one_missing(): start = { 'a': 1, } test_point = {'a': 3, 'b': 4} sampling._soft_update(start, test_point) assert start == {'a': 1, 'b': 4}
def test_soft_update_empty(): start = {} test_point = {'a': 3, 'b': 4} sampling._soft_update(start, test_point) assert start == test_point
def test_soft_update_one_missing(): start = {'a': 1, } test_point = {'a': 3, 'b': 4} sampling._soft_update(start, test_point) assert start == {'a': 1, 'b': 4}
def test_soft_update_all_present(): start = {'a': 1, 'b': 2} test_point = {'a': 3, 'b': 4} sampling._soft_update(start, test_point) assert start == {'a': 1, 'b': 2}