def test_delete_all_ports(self):
    self.mox.StubOutWithMock(self.br, 'get_port_name_list')
    self.br.get_port_name_list().AndReturn(['port1'])
    self.mox.StubOutWithMock(self.br, 'delete_port')
    self.br.delete_port('port1')
    self.mox.ReplayAll()
    self.br.delete_ports(all_ports=True)
    self.mox.VerifyAll()
def test_delete_all_ports(self):
    self.mox.StubOutWithMock(self.br, 'get_port_name_list')
    self.br.get_port_name_list().AndReturn(['port1'])
    self.mox.StubOutWithMock(self.br, 'delete_port')
    self.br.delete_port('port1')
    self.mox.ReplayAll()
    self.br.delete_ports(all_ports=True)
    self.mox.VerifyAll()