Lines Matching defs:meth

32     def meth(self, a, b, c, d=None): pass
423 mock = Mock(spec=Something().meth)
1054 for meth in asserters:
1060 meth, 1, '2', 3, bar='foo'
1064 for meth in asserters:
1070 meth, bar='foo'
1074 for meth in asserters:
1080 meth, 1, 2, 3
1084 for meth in asserters:
1089 AssertionError, message % (expected, actual), meth
1450 def meth(self, a, b, c, d=None): pass
1460 m.meth(1, 2, 3, d=1)
1461 m.assert_has_calls([call.meth(1, 2, 3, d=1)])
1462 m.assert_has_calls([call.meth(1, 2, 3, 1)])
1474 invalid_calls = [call.meth(1),
1477 call.Foo().meth(1, 2, 3, 4)]
2055 with mock.patch(f'{__name__}.Something.meth', autospec=True) as mocked:
2059 obj.meth(1, 2, 3, d=4)
2061 obj.meth.assert_has_calls([call(mock.ANY, 1, 2, 3, d=4)])
2076 obj.meth(1, 2, 3, d=4)
2078 call.attach_obj().meth(1, 2, 3, d=4)])
2079 obj.meth.assert_has_calls([call(1, 2, 3, d=4)])
2080 mocked.assert_has_calls([call(), call().meth(1, 2, 3, d=4)])
2236 with patch(f'{__name__}.Something.meth', autospect=True): pass
2240 with patch(f'{__name__}.Something.meth', auto_spec=True): pass
2244 with patch(f'{__name__}.Something.meth', set_spec=True): pass
2254 f'{__name__}.Something', meth=DEFAULT, autospect=True): pass
2257 f'{__name__}.Something', meth=DEFAULT, auto_spec=True): pass
2260 f'{__name__}.Something', meth=DEFAULT, set_spec=True): pass
2262 with patch(f'{__name__}.Something.meth', unsafe=True, autospect=True):
2265 with patch(f'{__name__}.Something.meth', unsafe=True, auto_spec=True):
2268 with patch(f'{__name__}.Something.meth', unsafe=True, set_spec=True):