Write the test as a generator, yield-ing the input strings, which IPython will see as if they were typed in at the prompt. c