@pytest.mark.asyncio
async def test_clear(self, redis, redis_connection):
    redis_connection.keys.return_value = ['nm:a', 'nm:b']
    (await redis._clear('nm'))
    redis_connection.delete.assert_called_with('nm:a', 'nm:b')
@pytest.mark.asyncio
async def test_clear(self, redis, redis_connection):
    redis_connection.keys.return_value = ['nm:a', 'nm:b']
    (await redis._clear('nm'))
    redis_connection.delete.assert_called_with('nm:a', 'nm:b')