Preppy Test 010 - Preppy Variables


This test passes a dictionary to Preppy. The items in this dictionary have the same names as variables within Preppy.

This check is to see if Preppy can handle a clash between its own variable names and things that are being passed to it.

Expected Output

You should see a long list of variable names between the two lines.



{'code': 'code', 'QENDDELIMITER': 'QENDDELIMITER', 'inif': 'inif', 'QSTARTDELIMITER': 'QSTARTDELIMITER', 'QUOTE': 'QUOTE', 'lk': 'lk', '__n__': '__n__', 'NameError': 'NameError', 'Substringquotes': 'Substringquotes', 'starttaglen': 'starttaglen', 'linemax': 'linemax', 'inputtext': 'inputtext', 'endtaglen': 'endtaglen', 'tb': 'tb', 'findpercent': 'findpercent', 'endlocation': 'endlocation', 'startblock': 'startblock', 'test': 'test', 'VERSION': 'VERSION', 'QUOTEQUOTE': 'QUOTEQUOTE', 'module_source_template': 'module_source_template', 'name': 'name', 'l': 'l', 'l2': 'l2', 't': 't', 'savecursor': 'savecursor', 'output': 'output', 'firstpass': 'firstpass', 'iconditional': 'iconditional', 'conditional': 'conditional', 'addpart': 'addpart', 'module': 'module', 'dictlines': 'dictlines', 'result': 'result', 'KEYWORDS': 'KEYWORDS', 'findstarttag': 'findstarttag', 'out': 'out', 'cursor': 'cursor', 'directive': 'directive', 'compilemode': 'compilemode', 'l1': 'l1', 'lineno': 'lineno', 'rc': 'rc', 'dictassntemplate': 'dictassntemplate', 'oldcursor': 'oldcursor', '__save_sys_stdout__': '__save_sys_stdout__', 'l3': 'l3', 'findendtag': 'findendtag', 'DIAGNOSTIC_FUNCTION': 'DIAGNOSTIC_FUNCTION', 'sblock': 'sblock', 'outfile': 'outfile', 'blockmode': 'blockmode', 'x': 'x', 'c': 'c', 'indent': 'indent', 'substitutionline': 'substitutionline', '__d__': '__d__', 's': 's', 'endblock': 'endblock', 'TOPLEVELPROLOG': 'TOPLEVELPROLOG', 'block': 'block', 'prints': 'prints', 'verbose': 'verbose', 'teststring': 'teststring', 'TOPLEVELWRAPPER': 'TOPLEVELWRAPPER', 'done': 'done', 'module_source_templateline0': 'module_source_templateline0', 'lindent': 'lindent', 'ENDDELIMITER': 'ENDDELIMITER', 'indentstring': 'indentstring', 'start': 'start', 'sourcefilename': 'sourcefilename', '__forbidden__': '__forbidden__', 'ssline0': 'ssline0', 'P': 'P', 'endtag': 'endtag', 'outputlist': 'outputlist', '__c__': '__c__', 'sourcechecksum': 'sourcechecksum', 'savefile': 'savefile', 'ddblock': 'ddblock', 'adddict': 'adddict', 'findfirstword': 'findfirstword', 'sclean': 'sclean', 'v': 'v', 'stringsub': 'stringsub', '__write__': '__write__', 'loop': 'loop', 'yislonger': 'yislonger', 'GLOBAL_LOADED_MODULE_DICTIONARY': 'GLOBAL_LOADED_MODULE_DICTIONARY', 'newcursor': 'newcursor', 'checksum': 'checksum', 'UNESCAPES': 'UNESCAPES', 'outputfile': 'outputfile', 'outfilename': 'outfilename', 'textlines': 'textlines', 'sline0': 'sline0', 'findmin': 'findmin', 'firstword': 'firstword', 'ValueError': 'ValueError', 'complexdirective': 'complexdirective', 'STARTDELIMITER': 'STARTDELIMITER', 'blockx': 'blockx', 'sourcetext': 'sourcetext', 'toplevel': 'toplevel', 'getModule': 'getModule', 'segment': 'segment', 'fn': 'fn', 'a': 'a', 'linesout': 'linesout', 'i': 'i', 'iout': 'iout', 'lines': 'lines', 'key_seen': 'key_seen'}