Lines Matching defs:called

233     funcopy.called = False
265 # is called when the helper is accessed similar to _setup_func.
556 __return_value_doc = "The value to be returned when the mock is called."
567 called = _delegating_property('called')
604 self.called = False
893 """assert that the mock was never called.
896 msg = ("Expected '%s' to not have been called. Called %s times.%s"
903 """assert that the mock was called at least once
906 msg = ("Expected '%s' to have been called." %
911 """assert that the mock was called only once.
914 msg = ("Expected '%s' to have been called once. Called %s times.%s"
927 actual = 'not called.'
943 """assert that the mock was called exactly once and that that call was
946 msg = ("Expected '%s' to be called once. Called %s times.%s"
955 """assert the mock has been called with the specified calls.
1000 """assert the mock has been called with the specified arguments.
1002 The assert passes if the mock has *ever* been called, unlike
1131 self.called = True
1223 * `side_effect`: A function to be called whenever the Mock is called. See
1225 dynamically changing return values. The function is called with the same
1233 * `return_value`: The value returned when the mock is called. By default
1256 Mocks can also be called with arbitrary keyword arguments. These will be
1725 that will be called to create the `new` object. By default `AsyncMock` is
1733 they are called with the wrong signature. For mocks replacing a class,
1741 create the attribute for you when the patched function is called, and
1795 `patch.dict` can also be called with arbitrary keyword arguments to set
2125 # don't overwrite existing attributes if called a second time
2417 the mock async function obtained when the mock object is called will be this
2659 to check that they are called with the correct signature.
2854 for `open` called directly or used as a context manager.