def METHOD_NAME():
    playbook = '''task:
  when:
    - '"pam" in ansible_facts.packages'
    - result_pam_file_present.stat.exists'''
    snippet = loadPlaybookYaml(playbook)
    want = {
        'task': {
            'when': [
                '"pam" in ansible_facts.packages',
                'result_pam_file_present.stat.exists'
            ]
        }
    }
    assert normalizeSnippet(snippet) == want