Something that\'s puzzling me a bit...
>>> from django.core.cache import get_cache
>>>
>>> cache = get_cache(\'django.core.cache.backe
WIth help from Martijn in this follow-up question it turns out the short answer is:
"Yup".
You can't pickle Mock() objects as they do not provide the top-level object that they are mocking so pickle therefore has no idea where to import from. As the cache requires the object to be pickled to store it, it is not possible to store a Mock() instance in the LocMemCache. Will have to rethink how I go about testing this.