From d50993b1bda6e8c0fab1c062affa61a4e3b35216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 5 Mar 2013 22:16:54 +0100 Subject: Improve doc on post-generation hooks (Closes #36). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was the last missing bit from PR#36 by @gotgenes. Signed-off-by: Raphaƫl Barrois --- tests/test_declarations.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_declarations.py') 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): -- cgit v1.2.3