'Test py and px by checking IP for h1 and adding h3'

def testPythonInterpreter(self):

    p = pexpect.spawn('mn')
    p.expect(self.prompt)
    p.sendline('py    h1.IP()')
    p.expect('10.0.0.1')
    p.expect(self.prompt)
    p.sendline("px    net.addHost('h3')")
    p.expect(self.prompt)
    p.sendline('px    net.addLink(s1,    h3)')
    p.expect(self.prompt)
    p.sendline('net')
    p.expect('h3')
    p.expect(self.prompt)
    p.sendline('py    h3.MAC()')
    p.expect('([a-f0-9]{2}:?){6}')
    p.expect(self.prompt)
    p.sendline('exit')
    p.wait()
