

def test_list_balancers(self):
    balancers = self.driver.list_balancers()
    self.assertEqual(len(balancers), 2)
    self.assertEqual(balancers[0].id, '76185')
    self.assertEqual(balancers[0].extra['datacenter'], 'dal05')
    self.assertEqual(balancers[0].extra['connection_limit'], 50)
    self.assertEqual(balancers[1].id, '76265')
    self.assertEqual(balancers[1].extra['datacenter'], 'par01')
    self.assertEqual(balancers[1].extra['connection_limit'], 50)

dataset/ETHPy150Open apache/libcloud/libcloud/test/loadbalancer/test_softlayer.py SoftlayerLBTests.test_list_balancers/original