<s> """<STR_LIT>""" <EOL> import unittest <EOL> import pexpect <EOL> import sys <EOL> class testTreePing64 ( unittest . TestCase ) : <EOL> prompt = '<STR_LIT>' <EOL> @ unittest . skipIf ( '<STR_LIT>' in sys . argv , '<STR_LIT>' ) <EOL> def testTreePing64 ( self ) : <EOL> "<STR_LIT>" <EOL> p = pexpect . spawn ( '<STR_LIT>' ) <EOL> p . expect ( '<STR_LIT>' , timeout = <NUM_LIT> ) <EOL> count = <NUM_LIT:0> <EOL> while True : <EOL> index = p . expect ( [ '<STR_LIT>' , pexpect . EOF ] ) <EOL> if index == <NUM_LIT:0> : <EOL> percent = int ( p . match . group ( <NUM_LIT:1> ) ) if p . match else - <NUM_LIT:1> <EOL> self . assertEqual ( percent , <NUM_LIT:0> ) <EOL> count += <NUM_LIT:1> <EOL> else : <EOL> break <EOL> self . assertTrue ( count > <NUM_LIT:0> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
