📜  python unittest mock - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:02.931000             🧑  作者: Mango

代码示例4
>>> real = ProductionClass()
>>> mock = Mock()
>>> real.closer(mock)
>>> mock.close.assert_called_with()