

def test_subcommand_with_documentation_shown(self):
    child = commands.Command()
    child.help = 'some text about everything this command does.'
    cmd = commands.Command()
    cmd.add_child('bar', child)
    expected = 'usage: foo\n\nCOMMANDS:\n\nbar\n\n  some text about everything this command does.'
    self.assertEqual(expected, child.format_help('foo').strip())

dataset/ETHPy150Open mopidy/mopidy/tests/test_commands.py HelpTest.test_subcommand_with_documentation_shown/VarMisuse@51/111 `cmd`->`child`