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)
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)