

def test_command_with_documentation(self):
    cmd = commands.Command()
    cmd.help = 'some text about everything this command does.'
    expected = 'usage: foo\n\nsome text about everything this command does.'
    self.assertEqual(expected, cmd.format_help('foo').strip())

dataset/ETHPy150Open mopidy/mopidy/tests/test_commands.py HelpTest.test_command_with_documentation/original