#NEWLINE# def test_flatten( self ) : #NEWLINE# #INDENT# answer_targets = [ ] #NEWLINE# answer_op = TargetingCriterion . OPERATOR . OR #NEWLINE# criterion = TargetingCriterion ( answer_targets , answer_op ) #NEWLINE# test_flatten = criterion . flatten ( ) #NEWLINE# answer_flatten = [ ] #NEWLINE# self . assertEqual ( answer_flatten , test_flatten ) #NEWLINE# criterion = TargetingCriterion ( [ CRITERION1 , CRITERION2 ] , TargetingCriterion . OPERATOR . NOT ) #NEWLINE# test_flatten = criterion . flatten ( ) #NEWLINE# answer_flatten = [ ADUNIT1 , ADUNIT2 ] #NEWLINE# self . assertEqual ( answer_flatten , test_flatten )