def test_selection(client):
    expected = {'models': '@model_1 +model_2+ model_3+', 'select': 'snapshot_1 snapshot_2 snapshot_3', 'exclude': 'model_4+'}
    data = client._selection(models=['@model_1', '+model_2+', 'model_3+', 'model_3+'], select=['snapshot_1', 'snapshot_2', 'snapshot_3'], exclude=['model_4+'])
    assert (set(data['models'].split(' ')) == set(expected['models'].split(' ')))
    assert (set(data['select'].split(' ')) == set(expected['select'].split(' ')))
    assert (set(data['exclude'].split(' ')) == set(expected['exclude'].split(' ')))
def test_selection(client):
    expected = {'models': '@model_1 +model_2+ model_3+', 'select': 'snapshot_1 snapshot_2 snapshot_3', 'exclude': 'model_4+'}
    data = client._selection(models=['@model_1', '+model_2+', 'model_3+', 'model_3+'], select=['snapshot_1', 'snapshot_2', 'snapshot_3'], exclude=['model_4+'])
    assert (set(data['models'].split(' ')) == set(expected['models'].split(' ')))
    assert (set(data['select'].split(' ')) == set(expected['select'].split(' ')))
    assert (set(data['exclude'].split(' ')) == set(expected['exclude'].split(' ')))