<s> from django . core . checks . compatibility . django_1_8_0 import check_duplicate_template_settings <EOL> from django . test import SimpleTestCase <EOL> from django . test . utils import override_settings <EOL> class CheckDuplicateTemplateSettingsTest ( SimpleTestCase ) : <EOL> def test_not_raised_if_no_templates_setting ( self ) : <EOL> self . assertEqual ( check_duplicate_template_settings ( None ) , [ ] ) <EOL> @ override_settings ( <EOL> TEMPLATES = [ { '<STR_LIT>' : '<STR_LIT>' } ] , <EOL> TEMPLATE_DIRS = [ '<STR_LIT>' ] , <EOL> ) <EOL> def test_duplicate_setting ( self ) : <EOL> result = check_duplicate_template_settings ( None ) <EOL> self . assertEqual ( result [ <NUM_LIT:0> ] . id , '<STR_LIT>' ) <EOL> @ override_settings ( <EOL> TEMPLATES = [ { '<STR_LIT>' : '<STR_LIT>' } ] , <EOL> TEMPLATE_DIRS = [ '<STR_LIT>' ] , <EOL> TEMPLATE_DEBUG = True , <EOL> ) <EOL> def test_multiple_duplicate_settings ( self ) : <EOL> result = check_duplicate_template_settings ( None ) <EOL> self . assertEqual ( len ( result ) , <NUM_LIT:1> ) <EOL> self . assertIn ( '<STR_LIT>' , result [ <NUM_LIT:0> ] . msg ) <EOL> self . assertIn ( '<STR_LIT>' , result [ <NUM_LIT:0> ] . msg ) </s>
