def test_delete_quantum_ports(self):
    port1 = ovs_lib.VifPort('tap1234', 1, uuidutils.generate_uuid(), 'ca:fe:de:ad:be:ef', 'br')
    port2 = ovs_lib.VifPort('tap5678', 2, uuidutils.generate_uuid(), 'ca:ee:de:ad:be:ef', 'br')
    ports = [port1, port2]
    self.mox.StubOutWithMock(self.br, 'get_vif_ports')
    self.br.get_vif_ports().AndReturn([port1, port2])
    self.mox.StubOutWithMock(self.br, 'delete_port')
    self.br.delete_port('tap1234')
    self.br.delete_port('tap5678')
    self.mox.ReplayAll()
    self.br.delete_ports(all_ports=False)
    self.mox.VerifyAll()
def test_delete_quantum_ports(self):
    port1 = ovs_lib.VifPort('tap1234', 1, uuidutils.generate_uuid(), 'ca:fe:de:ad:be:ef', 'br')
    port2 = ovs_lib.VifPort('tap5678', 2, uuidutils.generate_uuid(), 'ca:ee:de:ad:be:ef', 'br')
    ports = [port1, port2]
    self.mox.StubOutWithMock(self.br, 'get_vif_ports')
    self.br.get_vif_ports().AndReturn([port1, port2])
    self.mox.StubOutWithMock(self.br, 'delete_port')
    self.br.delete_port('tap1234')
    self.br.delete_port('tap5678')
    self.mox.ReplayAll()
    self.br.delete_ports(all_ports=False)
    self.mox.VerifyAll()