<s> from __future__ import unicode_literals , division <EOL> """<STR_LIT>""" <EOL> __author__ = "<STR_LIT>" <EOL> __version__ = "<STR_LIT>" <EOL> __maintainer__ = "<STR_LIT>" <EOL> __email__ = "<STR_LIT>" <EOL> __status__ = "<STR_LIT>" <EOL> __date__ = "<STR_LIT>" <EOL> import unittest <EOL> import os <EOL> import shutil <EOL> import glob <EOL> from custodian . nwchem . handlers import NwchemErrorHandler <EOL> test_dir = os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT:..>" , "<STR_LIT:..>" , "<STR_LIT:..>" , <EOL> '<STR_LIT>' , "<STR_LIT>" ) <EOL> class NwchemErrorHandlerTest ( unittest . TestCase ) : <EOL> def test_check_correct ( self ) : <EOL> os . chdir ( test_dir ) <EOL> shutil . copy ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> h = NwchemErrorHandler ( output_filename = "<STR_LIT>" ) <EOL> h . check ( ) <EOL> h . correct ( ) <EOL> shutil . move ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> shutil . copy ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> h = NwchemErrorHandler ( output_filename = "<STR_LIT>" ) <EOL> h . check ( ) <EOL> h . correct ( ) <EOL> shutil . move ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> for f in glob . glob ( "<STR_LIT>" ) : <EOL> os . remove ( f ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
