<commit_before>import asyncio

from asynctest import Mock

from aiocache.base import BaseCache


async def async_main():
    mocked_cache = Mock(spec=BaseCache)
    mocked_cache.get.return_value = "World"
    print(await mocked_cache.get("hello"))


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    print(loop.run_until_complete(async_main()))<commit_msg>Mock magic methods too in testing example<commit_after>import asyncio

from asynctest import MagicMock

from aiocache.base import BaseCache


async def async_main():
    mocked_cache = MagicMock(spec=BaseCache)
    mocked_cache.get.return_value = "world"
    print(await mocked_cache.get("hello"))


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(async_main())
{'fraction_non_alphanumeric': 0.0978120978120978, 'fraction_numerical': 0.0, 'mean_word_length': 5.125984251968504, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1026598', 'n_tokens_mistral': 257, 'n_tokens_neox': 256, 'n_words': 55}