diff options
author | smiddlek <smiddlek@b1010a0a-674b-0410-b734-77272b80c875> | 2010-09-03 17:00:55 +0000 |
---|---|---|
committer | smiddlek <smiddlek@b1010a0a-674b-0410-b734-77272b80c875> | 2010-09-03 17:00:55 +0000 |
commit | aed51a5f2e536a19caa69e390778c20be9c3b593 (patch) | |
tree | e6818d8bd6b44e3c498e0e5b129d17fbbf44eab0 /mox_test_helper.py | |
parent | 7e11553765c3963683387c5f9011ad17000711a4 (diff) | |
download | mox-aed51a5f2e536a19caa69e390778c20be9c3b593.tar.gz |
+ Fix for checking the method signature of unbound functions when keyword args
are passed as positional. With tests.
+ Made the comparator more robust by catching exceptions and returning False
git-svn-id: http://pymox.googlecode.com/svn/trunk@60 b1010a0a-674b-0410-b734-77272b80c875
Diffstat (limited to 'mox_test_helper.py')
-rwxr-xr-x | mox_test_helper.py | 15 |
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) |