#NEWLINE# @ pytest . mark . parametrize ( ( 'emp' , 'loc' , 'glob' , 'foc' ) , combs ) #NEWLINE# def test_multiselect( emp , loc , glob , foc ) : #NEWLINE# #INDENT# "Test logic of when subsets should be updated/added, given\n    the state of all editable subsets in a data collection.\n\n    We consider four variables. The first data set in the collection\n    is tested, and considired the 'local' data\n    :param emp: Is the local set empty (i.e. no subsets)?\n    :param loc: Are any of the local subsets editable?\n    :param glob: Are any non-local subsets editable?\n    :param foc: Does the local dataset have focus?\n    " #NEWLINE# if ( emp and loc ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( dc , state ) = setup_multi ( emp , loc , glob , foc ) #NEWLINE# ( did_add , did_apply ) = apply ( dc , state , foc ) #NEWLINE# assert ( did_add == should_add ( emp , loc , glob , foc ) ) #NEWLINE# assert ( did_apply == should_apply ( emp , loc , glob , foc ) )