def test_get_port_ofport(self):
    pname = 'tap99'
    ofport = '6'
    utils.execute(['ovs-vsctl', self.TO, 'get', 'Interface', pname, 'ofport'], root_helper=self.root_helper).AndReturn(ofport)
    self.mox.ReplayAll()
    self.assertEqual(self.br.get_port_ofport(pname), ofport)
    self.mox.VerifyAll()
def test_get_port_ofport(self):
    pname = 'tap99'
    ofport = '6'
    utils.execute(['ovs-vsctl', self.TO, 'get', 'Interface', pname, 'ofport'], root_helper=self.root_helper).AndReturn(ofport)
    self.mox.ReplayAll()
    self.assertEqual(self.br.get_port_ofport(pname), ofport)
    self.mox.VerifyAll()