'Run simple CLI tests: pingall (verify 0% drop) and iperf (sanity)'

def testEmptyNet(self):

    p = pexpect.spawn('python    -m    mininet.examples.emptynet')
    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('iperf')
    p.expect("Results:    \\['[\\d.]+    .bits/sec',    '[\\d.]+    .bits/sec'\\]")
    p.expect(self.prompt)
    p.sendline('exit')
    p.wait()
