add ses core
This commit is contained in:
parent
41890225e6
commit
9a92e87f02
7 changed files with 339 additions and 0 deletions
18
moto/ses/utils.py
Normal file
18
moto/ses/utils.py
Normal 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),
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue