Cleanup querying missing ELB error.

This commit is contained in:
Steve Pulec 2015-12-13 22:41:17 -05:00
commit 5d421dc343
5 changed files with 30 additions and 7 deletions

View file

@ -15,6 +15,7 @@ from boto.ec2.elb.policies import (
LBCookieStickinessPolicy,
OtherPolicy,
)
from boto.exception import BotoServerError
import sure # noqa
from moto import mock_elb, mock_ec2
@ -42,6 +43,12 @@ def test_create_load_balancer():
listener2.protocol.should.equal("TCP")
@mock_elb
def test_getting_missing_elb():
conn = boto.connect_elb()
conn.get_all_load_balancers.when.called_with(load_balancer_names='aaa').should.throw(BotoServerError)
@mock_elb
def test_create_elb_in_multiple_region():
zones = ['us-east-1a', 'us-east-1b']