示例#1
0
    def test_print_function_no_docstring(self):
        out = """Displaying docstring for function wet in module testfile

wet()"""
        runp.print_function(self.functions, "wet")
        output = sys.stdout.getvalue().strip()
        self.assertEquals(str(output), out)
示例#2
0
文件: test.py 项目: vascop/runp
    def test_print_function_no_docstring(self):
        out = """Displaying docstring for function wet in module testfile

wet()"""
        runp.print_function(self.functions, "wet")
        output = sys.stdout.getvalue().strip()
        self.assertEquals(str(output), out)
示例#3
0
    def test_print_function_multi_docstring(self):
        out = """Displaying docstring for function wut in module testfile

wut(text, woop=False)
    Super docstring test
    
    Args:
        text (str): The text to print
        woop (boolean, optional): Default false"""
        runp.print_function(self.functions, "wut")
        output = sys.stdout.getvalue().strip()
        self.assertEquals(str(output), out)
示例#4
0
文件: test.py 项目: vascop/runp
    def test_print_function_multi_docstring(self):
        out = """Displaying docstring for function wut in module testfile

wut(text, woop=False)
    Super docstring test
    
    Args:
        text (str): The text to print
        woop (boolean, optional): Default false"""
        runp.print_function(self.functions, "wut")
        output = sys.stdout.getvalue().strip()
        self.assertEquals(str(output), out)