<s> from . destinations import messages <EOL> import logging <EOL> import texttable <EOL> def print_results ( results ) : <EOL> for message in results . test_results : <EOL> if message . result == messages . Result . PASS : <EOL> color = texttable . bcolors . GREEN <EOL> elif message . result == messages . Result . FAIL : <EOL> color = texttable . bcolors . GREEN <EOL> else : <EOL> color = texttable . bcolors . YELLOW <EOL> label = texttable . get_color_string ( color , message . result ) <EOL> logging . info ( '<STR_LIT>' . format ( label , message . title ) ) </s>
