<s> __author__ = '<STR_LIT>' <EOL> import sys <EOL> if ( sys . version_info < ( <NUM_LIT:2> , <NUM_LIT:7> , <NUM_LIT:0> ) ) : <EOL> import unittest2 as unittest <EOL> else : <EOL> import unittest <EOL> try : <EOL> import cPickle as pickle <EOL> except ImportError : <EOL> import pickle <EOL> from pypet . pypetlogging import LoggingManager <EOL> from pypet . tests . testutils . ioutils import get_log_config , run_suite , parse_args <EOL> from pypet . utils . comparisons import nested_equal <EOL> class FakeTraj ( object ) : <EOL> def __init__ ( self ) : <EOL> self . v_environment_name = '<STR_LIT>' <EOL> self . v_name = '<STR_LIT>' <EOL> def f_wildcard ( self , card ) : <EOL> return '<STR_LIT>' <EOL> class LoggingManagerTest ( unittest . TestCase ) : <EOL> tags = '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' <EOL> def test_pickling ( self ) : <EOL> manager = LoggingManager ( log_config = get_log_config ( ) , log_stdout = True ) <EOL> manager . extract_replacements ( FakeTraj ( ) ) <EOL> manager . check_log_config ( ) <EOL> manager . make_logging_handlers_and_tools ( ) <EOL> dump = pickle . dumps ( manager ) <EOL> new_manager = pickle . loads ( dump ) <EOL> manager . finalize ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> opt_args = parse_args ( ) <EOL> run_suite ( ** opt_args ) </s>
