from django.test import TestCase
from aws_message.sqs import SQSQueue


SETTINGS = {
    'ACCOUNT_NUMBER': '123456789012',
    'QUEUE': 'ww-wwww-1',
    'REGION': 'xx-xxxx-1',
    'KEY_ID': 'XXXXXXXXXXXXXXXX',
    'KEY': 'YYYYYYYYYYYYYYYYYYYYYYYY',
    'VISIBILITY_TIMEOUT': 10,
    'MESSAGE_GATHER_SIZE': 10,
    'VALIDATE_SNS_SIGNATURE': True,
    'PAYLOAD_SETTINGS': {}
}


class TestSQSQueue(TestCase):

    def test_get_queue(self):
        try:
            queue = SQSQueue(SETTINGS)
        except Exception as ex:
            self.assertTrue("Could not connect to the endpoint URL" in str(ex))
