<s> """<STR_LIT>""" <EOL> import sys , os <EOL> import unittest , mock <EOL> try : <EOL> import slurmmon <EOL> except ImportError : <EOL> sys . path . append ( os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) ) ) <EOL> import slurmmon <EOL> from slurmmon import jobs as j <EOL> class SacctTestCase ( unittest . TestCase ) : <EOL> def test_sacct ( self ) : <EOL> with mock . patch ( '<STR_LIT>' ) as m : <EOL> m . return_value = open ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> for x in j . _yield_raw_sacct_job_text_blocks ( ) : <EOL> print x <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
