MCPcopy Index your code
hub / github.com/python/cpython / assert_called_once

Function assert_called_once

Lib/unittest/mock.py:243–244  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

241 def assert_not_called(*args, **kwargs):
242 return mock.assert_not_called(*args, **kwargs)
243 def assert_called_once(*args, **kwargs):
244 return mock.assert_called_once(*args, **kwargs)
245 def assert_called_once_with(*args, **kwargs):
246 return mock.assert_called_once_with(*args, **kwargs)
247 def assert_has_calls(*args, **kwargs):

Callers

nothing calls this directly

Calls 1

assert_called_onceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…