def test_get_command_description_full_docs(self): description = global_ctx.get_command_description("full-docs") self.assertEqual(description, "this command not only has just a description") docs = global_ctx.get_command_docs("full-docs") self.assertEqual(docs, full_docs.__doc__)
def test_get_command_description_just_description(self): description = global_ctx.get_command_description("just-description") self.assertEqual(description, "this command has just a description") docs = global_ctx.get_command_docs("just-description") self.assertEqual(docs, "this command has just a description")
def test_get_command_description_no_help(self): description = global_ctx.get_command_description("no-help") self.assertEqual(description, "No description") docs = global_ctx.get_command_docs("no-help") self.assertEqual(docs, "No description")