'Verify that the TTL is decremented'

def testTTL(self):

    p = pexpect.spawn('python    -m    mininet.examples.linuxrouter')
    p.expect(self.prompt)
    p.sendline('h1    ping    -c    1    h2')
    p.expect('ttl=(\\d+)')
    ttl = (int(p.match.group(1)) if p.match else (-1))
    p.expect(self.prompt)
    p.sendline('exit')
    p.wait()
    self.assertEqual(ttl, 63)
