def test_map_effects():
    selection, names = _map_effects(n_factors=2, effects='A')
    assert_true(names, ['A'])

    selection, names = _map_effects(n_factors=2, effects=['A', 'A:B'])
    assert_true(names, ['A', 'A:B'])

    selection, names = _map_effects(n_factors=3, effects='A*B')
    assert_true(names, ['A', 'B', 'A:B'])

    selection, names = _map_effects(n_factors=3, effects='A*C')
    assert_true(names, ['A', 'B', 'A:B', 'C', 'A:C', 'B:C', 'A:B:C'])

    assert_raises(ValueError, _map_effects, n_factors=2, effects='C')

    assert_raises(ValueError, _map_effects, n_factors=27, effects='all')
Test ANOVA effects parsing
dataset/ETHPy150Open mne-tools/mne-python/mne/stats/tests/test_parametric.py/test_map_effects