Ejemplo n.º 1
0
 def assert_produce(self, arg_list, result, promotable=False):
     self.assertEqual(
         parse_args.parse_clone(arg_list, promotable=promotable),
         result,
     )
Ejemplo n.º 2
0
 def assert_raises_cmdline(self, args, expected_msg, promotable=False):
     with self.assertRaises(CmdLineInputError) as cm:
         parse_args.parse_clone(args, promotable=promotable)
     self.assertEqual(cm.exception.message, expected_msg)