示例#1
0
def simulate_inserts(num_rhics):
    consumer_ids = []
    for x in range(0, num_rhics):
        identity = ConsumerIdentity(uuid=uuid.uuid4())
        identity.save()
        consumer_ids.append(uuid)
    return consumer_ids
def get_saved_uuids(num_rhics):
    saved_uuids = []
    for x in range(0, num_rhics):
        identity = ConsumerIdentity(uuid=module_uuid.uuid4())
        identity.engineering_ids=["1","2","3"]
        identity.save()
        saved_uuids.append(identity.uuid)
    return saved_uuids