Esempio n. 1
0
def test_find_all_sections():
    section = ExperimentSection(make_tree(['session', 'block', 'trial'], {}), ChainMap())
    sections = list(section.all_subsections(block=[2, 4], trial=[4, 6]))
    assert len(sections) == 4
    for subsection in sections:
        assert subsection.data['block'] in (2, 4)
        assert subsection.data['trial'] in (4, 6)