I have a python functional test which I am running from another function using:
unittest.main(module=ft1.y1, argv=sys.argv[:1], exit=False)
I would like to capture the output into a variable.
I've tried
out = unittest.main(module=ft1.y1, argv=sys.argv[:1], exit=False)
print 'out ' + str(out)
this results in a response of
out
What am I doing wrong?