

def test_get_balancer(self):
    balancer = self.driver.get_balancer(balancer_id='76185')
    self.assertEqual(balancer.id, '76185')
    self.assertEqual(balancer.state, State.UNKNOWN)
    self.assertEqual(balancer.extra['datacenter'], 'dal05')
    self.assertEqual(balancer.extra['protocol'], 'http')
    self.assertEqual(balancer.extra['algorithm'], Algorithm.ROUND_ROBIN)

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