<s> """<STR_LIT>""" <EOL> import unittest <EOL> import pexpect <EOL> from mininet . util import quietRun <EOL> destIP = '<STR_LIT>' <EOL> class testNAT ( unittest . TestCase ) : <EOL> prompt = '<STR_LIT>' <EOL> @ unittest . skipIf ( '<STR_LIT>' in quietRun ( '<STR_LIT>' % destIP ) , <EOL> '<STR_LIT>' ) <EOL> def testNAT ( self ) : <EOL> "<STR_LIT>" <EOL> p = pexpect . spawn ( '<STR_LIT>' ) <EOL> p . expect ( self . prompt ) <EOL> p . sendline ( '<STR_LIT>' % destIP ) <EOL> p . expect ( '<STR_LIT>' ) <EOL> percent = int ( p . match . group ( <NUM_LIT:1> ) ) if p . match else - <NUM_LIT:1> <EOL> p . expect ( self . prompt ) <EOL> p . sendline ( '<STR_LIT>' ) <EOL> p . wait ( ) <EOL> self . assertEqual ( percent , <NUM_LIT:0> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
