def _mock_call(_mock_self, *args, **kwargs):
    args_copy = copy.deepcopy(args)
kwargs_copy = copy.deepcopy(kwargs)
return super(CopyArgsMagicMock, self)._mock_call(*args_copy, **kwargs_copy)
Python mock method call arguments display the last state of a list