@mock_ec2_deprecated
@mock_elb_deprecated
def test_deregister_instances_valid_id_result_true(self):
    '\n        tests that given an valid id the boto_elb deregister_instances method\n        removes exactly one of a number of ELB registered instances\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 = 'TestDeregisterInstancesValidIdResult'
    load_balancer = conn_elb.create_load_balancer(elb_name, zones, [(80, 80, 'http')])
    reservations = conn_ec2.run_instances('ami-08389d60')
    load_balancer.register_instances(reservations.instances[0].id)
    deregister_result = boto_elb.deregister_instances(elb_name, reservations.instances[0].id, **conn_parameters)
    self.assertEqual(True, deregister_result)
tests that given an valid id the boto_elb deregister_instances method
removes exactly one of a number of ELB registered instances
@mock_ec2_deprecated
@mock_elb_deprecated
def test_deregister_instances_valid_id_result_true(self):
    '\n        tests that given an valid id the boto_elb deregister_instances method\n        removes exactly one of a number of ELB registered instances\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 = 'TestDeregisterInstancesValidIdResult'
    load_balancer = conn_elb.create_load_balancer(elb_name, zones, [(80, 80, 'http')])
    reservations = conn_ec2.run_instances('ami-08389d60')
    load_balancer.register_instances(reservations.instances[0].id)
    deregister_result = boto_elb.deregister_instances(elb_name, reservations.instances[0].id, **conn_parameters)
    self.assertEqual(True, deregister_result)