8 from mininet.util import pexpect
10 class testMultiTest( unittest.TestCase ):
14 def testMultiTest( self ):
15 "Verify pingall (0% dropped) and hX-eth0 interface for each host (ifconfig)"
16 p = pexpect.spawn( 'python -m mininet.examples.multitest' )
17 p.expect( '(\d+)% dropped' )
18 dropped = int( p.match.group( 1 ) )
19 self.assertEqual( dropped, 0 )
22 index = p.expect( [ 'h\d-eth0', self.prompt ] )
29 self.assertEqual( ifCount, 4 )
31 if __name__ == '__main__':