def test_vifport(self):
    'create and stringify vif port, confirm no exceptions'
    self.mox.ReplayAll()
    pname = 'vif1.0'
    ofport = 5
    vif_id = uuidutils.generate_uuid()
    mac = 'ca:fe:de:ad:be:ef'
    port = ovs_lib.VifPort(pname, ofport, vif_id, mac, self.br)
    self.assertEqual(port.port_name, pname)
    self.assertEqual(port.ofport, ofport)
    self.assertEqual(port.vif_id, vif_id)
    self.assertEqual(port.vif_mac, mac)
    self.assertEqual(port.switch.br_name, self.BR_NAME)
    foo = str(port)
    self.mox.VerifyAll()
create and stringify vif port, confirm no exceptions
def test_vifport(self):
    
    self.mox.ReplayAll()
    pname = 'vif1.0'
    ofport = 5
    vif_id = uuidutils.generate_uuid()
    mac = 'ca:fe:de:ad:be:ef'
    port = ovs_lib.VifPort(pname, ofport, vif_id, mac, self.br)
    self.assertEqual(port.port_name, pname)
    self.assertEqual(port.ofport, ofport)
    self.assertEqual(port.vif_id, vif_id)
    self.assertEqual(port.vif_mac, mac)
    self.assertEqual(port.switch.br_name, self.BR_NAME)
    foo = str(port)
    self.mox.VerifyAll()