Cleanup querying missing ELB error.
This commit is contained in:
parent
2e69986e01
commit
5d421dc343
5 changed files with 30 additions and 7 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue