<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> import pytest <EOL> from cookiecutter import main <EOL> def test_abbreviation_expansion ( ) : <EOL> input_dir = main . expand_abbreviations ( <EOL> '<STR_LIT:foo>' , { '<STR_LIT>' : { '<STR_LIT:foo>' : '<STR_LIT:bar>' } } <EOL> ) <EOL> assert input_dir == '<STR_LIT:bar>' <EOL> def test_abbreviation_expansion_not_an_abbreviation ( ) : <EOL> input_dir = main . expand_abbreviations ( <EOL> '<STR_LIT>' , { '<STR_LIT>' : { '<STR_LIT:foo>' : '<STR_LIT:bar>' } } <EOL> ) <EOL> assert input_dir == '<STR_LIT>' <EOL> def test_abbreviation_expansion_prefix ( ) : <EOL> input_dir = main . expand_abbreviations ( <EOL> '<STR_LIT>' , { '<STR_LIT>' : { '<STR_LIT>' : '<STR_LIT>' } } <EOL> ) <EOL> assert input_dir == '<STR_LIT>' <EOL> def test_abbreviation_expansion_builtin ( ) : <EOL> input_dir = main . expand_abbreviations ( <EOL> '<STR_LIT>' , { } <EOL> ) <EOL> assert input_dir == '<STR_LIT>' <EOL> def test_abbreviation_expansion_override_builtin ( ) : <EOL> input_dir = main . expand_abbreviations ( <EOL> '<STR_LIT>' , { '<STR_LIT>' : { '<STR_LIT>' : '<STR_LIT>' } } <EOL> ) <EOL> assert input_dir == '<STR_LIT>' <EOL> def test_abbreviation_expansion_prefix_ignores_suffix ( ) : <EOL> input_dir = main . expand_abbreviations ( <EOL> '<STR_LIT>' , { '<STR_LIT>' : { '<STR_LIT>' : '<STR_LIT>' } } <EOL> ) <EOL> assert input_dir == '<STR_LIT>' <EOL> def test_abbreviation_expansion_prefix_not_0_in_braces ( ) : <EOL> with pytest . raises ( IndexError ) : <EOL> main . expand_abbreviations ( '<STR_LIT>' , { '<STR_LIT>' : { '<STR_LIT>' : '<STR_LIT>' } } ) </s>
