bob hacker spam eggs ham brian since the mock-up now lives in modulewe can reuse it anytime we want to test cgi script offline to illustratethe script in example - is rewrite of the tutor py example we saw earlierusing the form mock-up utility to simulate field inputs if we had planned aheadwe could have tested the script like this without even needing to connect to the net example - pp \internet\web\cgi-bin\tutor _mockup py #!/usr/bin/python ""run tutor logic with formmockup instead of cgi fieldstorage(to testpython tutor _mockup py temp htmland open temp html ""from formmockup import formmockup form formmockup(name='bob'shoesize='small'language=['python'' ++''html']comment='ninini'rest same as originalless form assignment running this script from simple command line shows us what the html response stream will look likec:\pp \internet\web\cgi-binpython tutor _mockup py content-typetext/html tutor py greetings your name is bob you wear rather small shoes your current job(unknownyou program in python and +and html you also saidninini running it live yields the page in figure - field inputs are hardcodedsimilar in spirit to the tutor extension that embedded input parameters at the end of hyperlink urls herethey come from form mock-up objects created in the reply script that cannot be changed without editing the script because python code runs immediatelythoughmodifying python script during the debug cycle goes as quickly as you can type server-side scripting