Skip to content
Snippets Groups Projects
Commit cdd5210b authored by Brian O'Connor's avatar Brian O'Connor
Browse files

cleaned up and commented test_multitest.py

parent bc90a795
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
"""TEST"""
"""
Test for multitest.py
"""
import unittest
import pexpect
from mininet.log import setLogLevel
class testMultiTest( unittest.TestCase ):
"Test ping with single switch topology (common code)."
prompt = 'mininet>'
def testMultiTest( self ):
"Verify pingall (0% dropped) and hX-eth0 interface for each host (ifconfig)"
p = pexpect.spawn( 'python -m mininet.examples.multitest' )
p.expect( '(\d+)% dropped' )
dropped = int( p.match.group(1) )
......@@ -28,5 +29,4 @@ def testMultiTest( self ):
self.assertEqual( ifCount, 4 )
if __name__ == '__main__':
setLogLevel( 'warning' )
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment