예제 #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")