Fix retry tests.
mock_memory.has_calls does not exist; so calling it returns a MagicMock.
Migrated from D2786 (view on Phabricator)
mock_memory.has_calls does not exist; so calling it returns a MagicMock.
Migrated from D2786 (view on Phabricator)