add ses core

This commit is contained in:
Steve Pulec 2013-02-24 23:30:51 -05:00
commit 9a92e87f02
7 changed files with 339 additions and 0 deletions

18
moto/ses/utils.py Normal file
View file

@ -0,0 +1,18 @@
import random
import string
def random_hex(length):
return ''.join(random.choice(string.lowercase) for x in range(length))
def get_random_message_id():
return "{}-{}-{}-{}-{}-{}-{}".format(
random_hex(16),
random_hex(8),
random_hex(4),
random_hex(4),
random_hex(4),
random_hex(12),
random_hex(6),
)