add most of sqs features

This commit is contained in:
Steve Pulec 2013-02-24 11:06:42 -05:00
commit 41890225e6
5 changed files with 305 additions and 3 deletions

8
moto/sqs/utils.py Normal file
View file

@ -0,0 +1,8 @@
import random
import string
def generate_receipt_handle():
# http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html#ImportantIdentifiers-receipt-handles
length = 185
return ''.join(random.choice(string.lowercase) for x in range(length))