I found that mocking the ``remove()`` method directly caused problems elsewhere. This is related to the monkey-patching we do on the ``PulpCollection`` object, so I changed this mocking approach in many places.