'Test one-level include with default tasks and variables'

@patch('ansible.playbook.role.definition.unfrackpath', mock_unfrackpath_noop)
def test_simple(self):

    play = Play.load(dict(name='test    play', hosts=['foo'], gather_facts=False, tasks=[{'include_role': 'name=l3'}]), loader=self.loader, variable_manager=self.var_manager)
    tasks = play.compile()
    for (role, task_vars) in self.get_tasks_vars(play, tasks):
        self.assertEqual(task_vars.get('l3_variable'), 'l3-main')
        self.assertEqual(task_vars.get('test_variable'), 'l3-main')
