<s> from robot . model import SuiteVisitor <EOL> class ModelModifier ( SuiteVisitor ) : <EOL> def __init__ ( self , * tags ) : <EOL> self . config = tags or ( '<STR_LIT>' , ) <EOL> def start_suite ( self , suite ) : <EOL> if self . config [ <NUM_LIT:0> ] == '<STR_LIT>' : <EOL> raise RuntimeError ( '<STR_LIT:U+0020>' . join ( self . config [ <NUM_LIT:1> : ] ) ) <EOL> if self . config == ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) : <EOL> suite . tests = [ ] <EOL> else : <EOL> suite . tests = [ t for t in suite . tests if not t . tags . match ( '<STR_LIT>' ) ] <EOL> def visit_test ( self , test ) : <EOL> test . tags . add ( self . config ) </s>
