Remove unused exception argument (#4924)

This commit is contained in:
Viren Nadkarni 2022-03-15 18:04:52 +05:30 committed by GitHub
parent 131c448756
commit c1c423674c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,20 @@ def test_describe_load_balancers():
conn.describe_load_balancers(Names=["nope"])
@mock_elbv2
@mock_ec2
def test_describe_listeners():
conn = boto3.client("elbv2", region_name="us-east-1")
with pytest.raises(ClientError) as exc:
conn.describe_listeners()
err = exc.value.response["Error"]
err["Code"].should.equal("ValidationError")
err["Message"].should.equal(
"You must specify either listener ARNs or a load balancer ARN"
)
@mock_elbv2
@mock_ec2
def test_add_remove_tags():