Exemple #1
0
def test_extract_options():
    names = ['opt1', 'opt2']
    options = {'opt1': 1, 'opt2': 2, 'opt3': 3}
    extracted_options = helpers.extract_options(options, names)
    assert options == {'opt3': 3}
    assert extracted_options == {'opt1': 1, 'opt2': 2}
def test_extract_options():
    names = ['opt1', 'opt2']
    options = {'opt1': 1, 'opt2': 2, 'opt3': 3}
    extracted_options = helpers.extract_options(options, names)
    assert options == {'opt3': 3}
    assert extracted_options == {'opt1': 1, 'opt2': 2}