示例#1
0
文件: test_pbt.py 项目: StyXman/pbt
    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__)
示例#2
0
文件: test_pbt.py 项目: StyXman/pbt
    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")
示例#3
0
文件: test_pbt.py 项目: StyXman/pbt
    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")