

def test_balancer_list_members(self):
    balancer = self.driver.get_balancer(balancer_id='76185')
    members = balancer.list_members()
    self.assertEqual(len(members), 3)
    self.assertEqual(members[0].balancer, balancer)
    self.assertEqual(members[0].id, '226227')
    self.assertEqual(members[0].ip, '10.126.5.34')
    self.assertEqual(members[1].balancer, balancer)
    self.assertEqual(members[1].id, '226229')
    self.assertEqual(members[1].ip, '10.126.5.35')

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