def METHOD_NAME(change_dir):
    """Check that we can maintain correct context with match in nested blocks."""
    output = tackle('block-match-block.yaml')
    assert len(output['block']) == 5  # 5 keys
    assert output['block']['matches']['render_inner'] == 'bar'
    assert output['block']['render_inner'] == 'things'
    assert output['block_loop']['matches'][0]['render_inner'] == 'bar'
    assert output['block_loop']['matches'] == output['block_loop']['check']