'Test ping and pingall'

def testConnectivity(self):

    p = pexpect.spawn('mn')
    p.expect(self.prompt)
    p.sendline('h1    ping    -c    1    h2')
    p.expect('1    packets    transmitted,    1    received')
    p.expect(self.prompt)
    p.sendline('pingall')
    p.expect('0%    dropped')
    p.expect(self.prompt)
    p.sendline('exit')
    p.wait()
