Searched refs:assert_called_once (Results 1 – 15 of 15) sorted by relevance
37 sep.join.assert_called_once()
4 - Issue #26323: Add Mock.assert_called() and Mock.assert_called_once()
192 def assert_called_once(*args, **kwargs): function193 return mock.assert_called_once(*args, **kwargs)226 funcopy.assert_called_once = assert_called_once803 def assert_called_once(_mock_self): member in NonCallableMock
1302 m.hello.assert_called_once()1304 m.hello.assert_called_once()1308 m.hello.assert_called_once()
1439 m.hello.assert_called_once()1441 m.hello.assert_called_once()1445 m.hello.assert_called_once()
992 self.assertRaises(AssertionError, function.assert_called_once)997 function.assert_called_once()
268 assert_not_called, and assert_called_once.
1612 Add Mock.assert_called() and Mock.assert_called_once() methods to
4265 assert_not_called, and assert_called_once.
1362 cb.assert_called_once()
2457 exc_handler.assert_called_once()2483 exc_handler.assert_called_once()
276 .. method:: assert_called_once(*args, **kwargs)283 >>> mock.method.assert_called_once()286 >>> mock.method.assert_called_once()
908 def assert_called_once(_mock_self): member in NonCallableMock
1540 mock.assert_called_once()
1657 <unittest.mock.Mock.assert_called>` and :meth:`Mock.assert_called_once()1658 <unittest.mock.Mock.assert_called_once>` to check if the mock object