moto/tests/test_organizations/object_syntax.py

26 lines
678 B
Python
Raw Normal View History

"""
Temporary functions for checking object structures while specing out
models. This module will go away.
"""
import yaml
from moto import organizations as orgs
# utils
print(orgs.utils.make_random_org_id())
2018-07-15 17:31:16 +00:00
root_id = orgs.utils.make_random_root_id()
print(root_id)
print(orgs.utils.make_random_ou_id(root_id))
print(orgs.utils.make_random_account_id())
2018-07-15 17:31:16 +00:00
print(orgs.utils.make_random_create_account_status_id())
# models
2018-07-14 20:23:15 +00:00
my_org = orgs.models.FakeOrganization(feature_set='ALL')
print(yaml.dump(my_org._describe()))
#assert False
my_account = orgs.models.FakeAccount(my_org, AccountName='blee01', Email='blee01@moto-example.org')
print(yaml.dump(my_account))
#assert False