@mock_ec2_deprecated
@mock_elb_deprecated
def test_register_instances_valid_id_string(self):
    '\n        tests that given a string containing a instance id and valid ELB that\n        register_instances adds the given instance to an ELB\n        '
    conn_ec2 = boto.ec2.connect_to_region(region, **boto_conn_parameters)
    conn_elb = boto.ec2.elb.connect_to_region(region, **boto_conn_parameters)
    zones = [zone.name for zone in conn_ec2.get_all_zones()]
    elb_name = 'TestRegisterInstancesValidIdResult'
    conn_elb.create_load_balancer(elb_name, zones, [(80, 80, 'http')])
    reservations = conn_ec2.run_instances('ami-08389d60')
    boto_elb.register_instances(elb_name, reservations.instances[0].id, **conn_parameters)
    load_balancer_refreshed = conn_elb.get_all_load_balancers(elb_name)[0]
    registered_instance_ids = [instance.id for instance in load_balancer_refreshed.instances]
    log.debug(load_balancer_refreshed.instances)
    self.assertEqual([reservations.instances[0].id], registered_instance_ids)
tests that given a string containing a instance id and valid ELB that
register_instances adds the given instance to an ELB
@mock_ec2_deprecated
@mock_elb_deprecated
def test_register_instances_valid_id_string(self):
    '\n        tests that given a string containing a instance id and valid ELB that\n        register_instances adds the given instance to an ELB\n        '
    conn_ec2 = boto.ec2.connect_to_region(region, **boto_conn_parameters)
    conn_elb = boto.ec2.elb.connect_to_region(region, **boto_conn_parameters)
    zones = [zone.name for zone in conn_ec2.get_all_zones()]
    elb_name = 'TestRegisterInstancesValidIdResult'
    conn_elb.create_load_balancer(elb_name, zones, [(80, 80, 'http')])
    reservations = conn_ec2.run_instances('ami-08389d60')
    boto_elb.register_instances(elb_name, reservations.instances[0].id, **conn_parameters)
    load_balancer_refreshed = conn_elb.get_all_load_balancers(elb_name)[0]
    registered_instance_ids = [instance.id for instance in load_balancer_refreshed.instances]
    log.debug(load_balancer_refreshed.instances)
    self.assertEqual([reservations.instances[0].id], registered_instance_ids)