'Run the example and verify its 4 ping results'

def testMobility(self):

    cmd = 'python    -m    mininet.examples.mobility    2>&1'
    grep = '    |    grep    -c    "    0%    dropped"    '
    result = check_output((cmd + grep), shell=True)
    assert (int(result) == 4)
