summaryrefslogtreecommitdiff
path: root/mox_test_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'mox_test_helper.py')
-rwxr-xr-xmox_test_helper.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/mox_test_helper.py b/mox_test_helper.py
index 0ccd484..5ac989f 100755
--- a/mox_test_helper.py
+++ b/mox_test_helper.py
@@ -123,5 +123,20 @@ def MyTestFunction(one, two, nine=None):
class ExampleClass(object):
+ def __init__(self, foo='bar'):
+ pass
+
def TestMethod(self, one, two, nine=None):
pass
+
+ def NamedParams(self, ignore, foo='bar', baz='qux'):
+ pass
+
+ def SpecialArgs(self, *args, **kwargs):
+ pass
+
+
+# This class is used to test stubbing out __init__ of a parent class.
+class ChildExampleClass(ExampleClass):
+ def __init__(self):
+ ExampleClass.__init__(self)