def test__load_method_called_with_the_right_path(self):
dummy_path = '/dummy/path'
with mock.patch(builtin_module + '.open') as mock_open:
file_handler._load(dummy_path)
mock_open.assert_called_with(dummy_path, 'r')
评论列表
文章目录