<s> from __future__ import print_function <EOL> import sys <EOL> import os <EOL> from robot . api import SuiteVisitor <EOL> ROBOT_LISTENER_API_VERSION = <NUM_LIT:3> <EOL> def start_suite ( data , result ) : <EOL> data . name = data . doc = result . name = '<STR_LIT>' <EOL> result . doc = ( result . doc + '<STR_LIT>' ) . strip ( ) <EOL> result . metadata [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> result . metadata [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> result . metadata [ '<STR_LIT>' ] = <NUM_LIT> <EOL> assert len ( data . tests ) == <NUM_LIT:2> <EOL> assert len ( result . tests ) == <NUM_LIT:0> <EOL> data . tests . create ( name = '<STR_LIT>' ) <EOL> data . visit ( TestModifier ( ) ) <EOL> def end_suite ( data , result ) : <EOL> assert len ( data . tests ) == <NUM_LIT:3> <EOL> assert len ( result . tests ) == <NUM_LIT:3> <EOL> assert data . name == data . doc == result . name == '<STR_LIT>' <EOL> assert result . doc . endswith ( '<STR_LIT>' ) <EOL> assert result . metadata [ '<STR_LIT>' ] == '<STR_LIT>' <EOL> assert result . metadata [ '<STR_LIT>' ] == '<STR_LIT>' <EOL> assert result . metadata [ '<STR_LIT>' ] == '<STR_LIT>' <EOL> result . name += '<STR_LIT>' <EOL> result . doc += '<STR_LIT>' <EOL> result . metadata [ '<STR_LIT>' ] += '<STR_LIT>' <EOL> for test in result . tests : <EOL> test . name = '<STR_LIT>' <EOL> test . status = '<STR_LIT>' <EOL> def startTest ( data , result ) : <EOL> data . name = data . doc = result . name = '<STR_LIT>' <EOL> result . doc = ( result . doc + '<STR_LIT>' ) . strip ( ) <EOL> result . tags . add ( '<STR_LIT>' ) <EOL> result . message = '<STR_LIT>' <EOL> result . parent . metadata [ '<STR_LIT>' ] += '<STR_LIT:x>' <EOL> data . name = data . doc = '<STR_LIT>' <EOL> data . keywords . create ( '<STR_LIT>' ) <EOL> def end_test ( data , result ) : <EOL> result . name = '<STR_LIT>' <EOL> result . doc += '<STR_LIT>' <EOL> result . tags . add ( '<STR_LIT>' ) <EOL> result . passed = not result . passed <EOL> result . message += '<STR_LIT>' <EOL> data . name = data . doc = '<STR_LIT>' <EOL> def log_message ( msg ) : <EOL> msg . message = msg . message . upper ( ) <EOL> msg . timestamp = '<STR_LIT>' <EOL> message = log_message <EOL> def output_file ( path ) : <EOL> print ( "<STR_LIT>" % os . path . basename ( path ) , file = sys . __stderr__ ) <EOL> def log_file ( path ) : <EOL> print ( "<STR_LIT>" % os . path . basename ( path ) , file = sys . __stderr__ ) <EOL> def report_file ( path ) : <EOL> print ( "<STR_LIT>" % os . path . basename ( path ) , file = sys . __stderr__ ) <EOL> def debug_file ( path ) : <EOL> print ( "<STR_LIT>" % os . path . basename ( path ) , file = sys . __stderr__ ) <EOL> def xunit_file ( path ) : <EOL> print ( "<STR_LIT>" % os . path . basename ( path ) , file = sys . __stderr__ ) <EOL> def close ( ) : <EOL> print ( "<STR_LIT>" , file = sys . __stderr__ ) <EOL> class TestModifier ( SuiteVisitor ) : <EOL> def visit_test ( self , test ) : <EOL> test . name += '<STR_LIT>' <EOL> test . doc = ( test . doc + '<STR_LIT>' ) . strip ( ) <EOL> test . tags . add ( '<STR_LIT>' ) <EOL> def not_implemented ( * args ) : <EOL> raise SystemExit ( '<STR_LIT>' ) <EOL> start_keyword = end_keyword = not_implemented <EOL> library_import = resource_import = variables_import = not_implemented </s>
