'Simple pingall test that verifies 0% packet drop in data network'

def testPingall(self):

    p = pexpect.spawn('python    -m    mininet.examples.controlnet')
    p.expect(self.prompt)
    p.sendline('pingall')
    p.expect('(\\d+)%    dropped')
    percent = (int(p.match.group(1)) if p.match else (-1))
    self.assertEqual(percent, 0)
    p.expect(self.prompt)
    p.sendline('exit')
    p.wait()
