summaryrefslogtreecommitdiff
path: root/tests/test_declarations.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_declarations.py')
-rw-r--r--tests/test_declarations.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_declarations.py b/tests/test_declarations.py
index b11a4a8..2e527af 100644
--- a/tests/test_declarations.py
+++ b/tests/test_declarations.py
@@ -355,6 +355,13 @@ class PostGenerationMethodCallTestCase(unittest.TestCase):
decl.call(self.obj, False, (('param1', 'param2'),))
self.obj.method.assert_called_once_with(('param1', 'param2'))
+ def test_multi_call_with_kwargs(self):
+ decl = declarations.PostGenerationMethodCall(
+ 'method', 'arg1', 'arg2')
+ decl.call(self.obj, False, x=2)
+ self.obj.method.assert_called_once_with('arg1', 'arg2', x=2)
+
+
class CircularSubFactoryTestCase(unittest.TestCase):