def test_choices(context_file, default_context, extra_context):
 expected_context = {u'choices_template': OrderedDict([(u'full_name', u'Raphael Pierzina'), (u'github_username', u'hackebrot'), (u'project_name', u'Kivy Project'), (u'repo_name', u'{{cookiecutter.project_name|lower}}'), (u'orientation', [u'landscape', u'all', u'portrait'])])}
 generated_context = generate.generate_context(context_file, default_context, extra_context)
 assert (generated_context == expected_context)

def test_choices ( context_file , default_context , extra_context ) : expected_context = { u'choices_template' : OrderedDict ( [ ( u'full_name' , u'Raphael Pierzina' ) , ( u'github_username' , u'hackebrot' ) , ( u'project_name' , u'Kivy Project' ) , ( u'repo_name' , u'{{cookiecutter.project_name|lower}}' ) , ( u'orientation' , [ u'landscape' , u'all' , u'portrait' ] ) ] ) } generated_context = generate . generate_context ( context_file , default_context , extra_context ) assert ( generated_context == expected_context )
make sure that the default for list variables is based on the user config and the list as such is not changed to a single value .