import globalvars as gv import helper times = 5 NAME_LIST = helper.take_els(gv.VALID_USERNAME_LIST, times) PASSWORD = gv.PASSWORD DATA_LIST = helper.words_list('str_generator(128)', times) FIRST_NAME = helper.take_els(gv.FIRSTNAME_LIST, times) LAST_NAME = helper.take_els(gv.LASTNAME_LIST, times) IP = ' ' EMAIL = gv.EMAIL used_data = DATA_LIST + FIRST_NAME + LAST_NAME
VALID_NAME = gv.VALID_USERNAME_LIST VALID_PASS = gv.PASSWORD DEVICE_TYPE = gv.DEVICE_TYPE_LIST FIRSTNAME = gv.FIRSTNAME_LIST LASTNAME = gv.LASTNAME_LIST EMAIL = '*****@*****.**' DATA = ' ' TOKEN = '' IP = '127.0.0.1' DOMAIN = ' ' VERSION = gv.VERSION # invalid parameters INVALID_NAME = [' ', '%$#@^($', 'sad|xz||',] INVALID_PASS = helper.words_list("str_generator(64)",3) valid_params_dict = { 'NAME':VALID_NAME, 'PASSWORD': VALID_PASS, 'DEVICE_TYPE':DEVICE_TYPE, 'DOMAIN': DOMAIN, 'EMAIL': EMAIL, 'FIRST_NAME': FIRSTNAME, 'LAST_NAME' : LASTNAME, 'IP': IP, 'TOKEN': TOKEN, 'NEWPASSWORD' : VALID_PASS, 'DATA': DATA, 'VERSION': VERSION,