summaryrefslogtreecommitdiff
path: root/tests/test_declarations.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-05 22:16:54 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-05 22:16:54 +0100
commitd50993b1bda6e8c0fab1c062affa61a4e3b35216 (patch)
tree86f6d9bf18af9efacc5502e8e7a7de82acc79ae9 /tests/test_declarations.py
parent2bc0fc8413c02a7faf3a116fe875d76bc3403117 (diff)
downloadfactory-boy-d50993b1bda6e8c0fab1c062affa61a4e3b35216.tar
factory-boy-d50993b1bda6e8c0fab1c062affa61a4e3b35216.tar.gz
Improve doc on post-generation hooks (Closes #36).
This was the last missing bit from PR#36 by @gotgenes. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
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):