def test_good_command(self):
        parser = make_argparser(foo_command)
        info = StringInfo()
        with info.open("w") as f:
            status = non_exiting_main(parser, [], stdout=f)
        self.assertEqual(status, 0)
        self.assertEqual(info.value, "foo")
Check that output is written to stdout.
dataset/ETHPy150Open cjerdonek/open-rcv/openrcv/test/scripts/test_run.py/NonExitingMainTest.test_good_command