From e0bda82a13b5a15e7c1d7d33351bb79226d20dfb Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 4 Nov 2013 11:44:47 +0800 Subject: [PATCH] Add two methods to test module --- demo_docs/source/test_py_module/test.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/demo_docs/source/test_py_module/test.py b/demo_docs/source/test_py_module/test.py index e02e4bb4..686dce80 100644 --- a/demo_docs/source/test_py_module/test.py +++ b/demo_docs/source/test_py_module/test.py @@ -18,3 +18,27 @@ class Foo: self.spam = 4 """Docstring for instance attribute spam.""" + + def add(self, val1, val2): + """Return the added values. + + :param val1: First number to add. + :type val1: int + :param val2: Second number to add. + :type val2: int + :rtype: int + + """ + + return val1 + val2 + + def capitalize(self, myvalue): + """Return a string as uppercase. + + :param myvalue: String to change + :type myvalue: string + :rtype: string + + """ + + return myvalue.upper()