

def test_subcommand_without_documentation_or_options(self):
    child = commands.Command()
    cmd = commands.Command()
    cmd.add_child('bar', child)
    self.assertEqual('usage: foo', self.format_help('foo').strip())

dataset/ETHPy150Open mopidy/mopidy/tests/test_commands.py HelpTest.test_subcommand_without_documentation_or_options/VarMisuse@41/58 `cmd`->`self`