Mercurial > hg > pyloader
comparison tests/test_call.txt @ 85:418289c0fe3c
STUB: tests/test_call.txt tests/test_factory.txt
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Fri, 21 Mar 2014 21:50:16 -0700 |
| parents | d50d5237e82d |
| children |
comparison
equal
deleted
inserted
replaced
| 84:daf3a05a05fe | 85:418289c0fe3c |
|---|---|
| 3 | 3 |
| 4 Test the call method:: | 4 Test the call method:: |
| 5 | 5 |
| 6 >>> from pyloader.invoke import call | 6 >>> from pyloader.invoke import call |
| 7 >>> options = {'badarg': 'bar', 'a': 7, 'b': 9, 'c': 10} | 7 >>> options = {'badarg': 'bar', 'a': 7, 'b': 9, 'c': 10} |
| 8 >>> def foo(a, b=1, c=2): | 8 >>> def foo(a, b=1, c=2): |
| 9 ... return a + 10*b + 100*c | 9 ... return a + 10*b + 100*c |
| 10 >>> foo(7, 9, 10) | 10 >>> foo(7, 9, 10) |
| 11 1097 | 11 1097 |
| 12 | 12 |
| 13 You can't call methods with bad arguments OOTB in python:: | 13 You can't call methods with bad arguments OOTB in python:: |
