Lines Matching defs:kwargs
849 kwargs = {'side_effect': KeyError, 'foo.bar.return_value': 33,
852 patcher = patch(foo_name, **kwargs)
862 kwargs = {'side_effect': KeyError, 'foo.bar.return_value': 33,
865 patcher = patch.object(Foo, 'f', **kwargs)
1117 kwargs = None
1118 def __init__(self, **kwargs):
1119 Bar.kwargs = kwargs
1125 self.assertEqual(Bar.kwargs, dict(arg1=1, arg2=2))
1132 kwargs = None
1133 def __init__(self, **kwargs):
1134 Bar.kwargs = kwargs
1139 self.assertEqual(Bar.kwargs, dict(spec=Bar))
1146 self.assertEqual(Bar.kwargs, dict(spec_set=Bar))
1195 kwargs = {arg: True}
1196 p = patch(foo_name, new_callable=Klass, **kwargs)
1326 def test1(g, **kwargs):
1327 _test(g, **kwargs)
1332 def test2(g, **kwargs):
1333 _test(g, **kwargs)
1338 def test3(g, **kwargs):
1339 _test(g, **kwargs)
1341 def _test(g, **kwargs):
1342 f = kwargs.pop('f')
1343 foo = kwargs.pop('foo')
1344 self.assertFalse(kwargs)