Update and rename MantenerFIFO to MantenerFIFO.md
[vsorcdistro/.git] / mininet / examples / test / test_mobility.py
1 #!/usr/bin/env python
2
3 """
4 Test for mobility.py
5 """
6
7 import unittest
8 from subprocess import check_output
9
10 class testMobility( unittest.TestCase ):
11
12     def testMobility( self ):
13         "Run the example and verify its 4 ping results"
14         cmd = 'python -m mininet.examples.mobility 2>&1'
15         grep = ' | grep -c " 0% dropped" '
16         result = check_output( cmd + grep, shell=True )
17         assert int( result ) == 4
18
19 if __name__ == '__main__':
20     unittest.main()