cleaned up and commented test_tree1024.py and test_treeping64.py

This commit is contained in:
Brian O'Connor
2013-09-11 14:45:48 -07:00
parent 48c49c54e2
commit 3577a6989d
2 changed files with 8 additions and 24 deletions
+4 -10
View File
@@ -1,23 +1,18 @@
#!/usr/bin/env python
"""TEST"""
"""
Test for treeping64.py
"""
import unittest
import pexpect
#from time import sleep
from mininet.log import setLogLevel
#from mininet.net import Mininet
#from mininet.node import CPULimitedHost
#from mininet.link import TCLink
#from mininet.examples.simpleperf import SingleSwitchTopo
class testTreePing64( unittest.TestCase ):
"Test ping with single switch topology (common code)."
prompt = 'mininet>'
def testTreePing64( self ):
"Run the example and verify ping results"
p = pexpect.spawn( 'python -m mininet.examples.treeping64' )
p.expect( 'Tree network ping results:', timeout=6000 )
count = 0
@@ -32,5 +27,4 @@ class testTreePing64( unittest.TestCase ):
self.assertTrue( count > 0 )
if __name__ == '__main__':
setLogLevel( 'warning' )
unittest.main()