Add describe_endpoint and register_certificate_without_ca in iot_mock module with unittest (#3279)

Co-authored-by: Zhi Li <zhi_li@trendmicro.com>
This commit is contained in:
zhil3 2020-09-04 04:11:17 -04:00 committed by GitHub
commit 8854fd06e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 148 additions and 2 deletions

10
moto/utilities/utils.py Normal file
View file

@ -0,0 +1,10 @@
import random
import string
def random_string(length=None):
n = length or 20
random_str = "".join(
[random.choice(string.ascii_letters + string.digits) for i in range(n)]
)
return random_str