class CopyArgsMagicMock(MagicMock):
    """
    Overrides MagicMock so that we store copies of arguments passed into calls to the
    mock object, instead of storing references to the original argument objects.
    """

def _mock_call(_mock_self, *args, **kwargs):
    pass
Python mock method call arguments display the last state of a list