'--help-orders prints each of the available orders and then exits.'

def test_help_ordersPrintsSynopsisAndQuits(self):

    self.patch(sys, 'stdout', NativeStringIO())
    exc = self.assertRaises(SystemExit, trial.Options().parseOptions, ['--help-orders'])
    self.assertEqual(exc.code, 0)
    output = sys.stdout.getvalue()
    msg = '%r    with    its    description    not    properly    described    in    %r'
    for (orderName, (orderDesc, _)) in trial._runOrders.items():
        match = re.search(('%s.*%s' % (re.escape(orderName), re.escape(orderDesc))), output)
        self.assertTrue(match, msg=(msg % (orderName, output)))
