<s> import time <EOL> import logging <EOL> from werobot . logger import enable_pretty_logging , _LogFormatter <EOL> def get_new_logger ( ) : <EOL> return logging . getLogger ( str ( time . time ( ) ) ) <EOL> def test_logger_level ( ) : <EOL> for level in ( '<STR_LIT>' , '<STR_LIT:info>' , '<STR_LIT>' , '<STR_LIT:error>' ) : <EOL> logger = get_new_logger ( ) <EOL> enable_pretty_logging ( logger , level = level ) <EOL> assert logger . level == getattr ( logging , level . upper ( ) ) <EOL> def test_handlers ( ) : <EOL> logger = get_new_logger ( ) <EOL> enable_pretty_logging ( logger ) <EOL> assert isinstance ( logger . handlers [ <NUM_LIT:0> ] . formatter , _LogFormatter ) </s>
