def test_help_ordersPrintsSynopsisAndQuits(self):
        """
        --help-orders prints each of the available orders and then exits.
        """
        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(
                (re.escape(orderName), re.escape(orderDesc)) % "%s.*%s",
                output,
            )

            self.assertTrue(match, msg=msg % (orderName, output))
dataset/ETHPy150Open twisted/twisted/twisted/trial/test/test_script.py/HelpOrderTests.test_help_ordersPrintsSynopsisAndQuits/swapped operands of `%`