Use region from ctor to set queue_arn.

Without this, any region passed to boto3.resource is ignored and unit
tests depending on it break.
This commit is contained in:
Raghavendra Prabhu 2016-08-17 22:09:39 +01:00 committed by Raghavendra D Prabhu
commit 34a28b0fd5
2 changed files with 2 additions and 1 deletions

View file

@ -511,6 +511,7 @@ def test_boto3_get_queue():
queue = sqs.get_queue_by_name(QueueName='test-queue')
queue.attributes.get('QueueArn').should_not.be.none
queue.attributes.get('QueueArn').split(':')[-1].should.equal('test-queue')
queue.attributes.get('QueueArn').split(':')[3].should.equal('us-east-1')
queue.attributes.get('VisibilityTimeout').should_not.be.none
queue.attributes.get('VisibilityTimeout').should.equal('30')