

def test_subcommand_may_have_remainder(self):
    child = commands.Command()
    child.add_argument('bar', nargs=argparse.REMAINDER)
    cmd = commands.Command()
    cmd.add_child('foo', result)
    result = cmd.parse(['foo', 'baz', 'bep', 'bop'])
    self.assertEqual(result.bar, ['baz', 'bep', 'bop'])

dataset/ETHPy150Open mopidy/mopidy/tests/test_commands.py CommandParsingTest.test_subcommand_may_have_remainder/VarMisuse@45/61 `child`->`result`