<s> from django . core . exceptions import ImproperlyConfigured <EOL> from django . template import engines <EOL> from django . test import SimpleTestCase , override_settings <EOL> class TemplateStringsTests ( SimpleTestCase ) : <EOL> @ override_settings ( TEMPLATES = [ { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } ] ) <EOL> def test_backend_import_error ( self ) : <EOL> """<STR_LIT>""" <EOL> with self . assertRaises ( ImportError ) : <EOL> engines . all ( ) <EOL> with self . assertRaises ( ImportError ) : <EOL> engines . all ( ) <EOL> @ override_settings ( TEMPLATES = [ { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : True , <EOL> '<STR_LIT>' : { '<STR_LIT>' : [ ] } , <EOL> } ] ) <EOL> def test_backend_improperly_configured ( self ) : <EOL> """<STR_LIT>""" <EOL> with self . assertRaises ( ImproperlyConfigured ) : <EOL> engines . all ( ) <EOL> with self . assertRaises ( ImproperlyConfigured ) : <EOL> engines . all ( ) <EOL> @ override_settings ( TEMPLATES = [ { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } ] ) <EOL> def test_backend_names_must_be_unique ( self ) : <EOL> with self . assertRaises ( ImproperlyConfigured ) : <EOL> engines . all ( ) </s>
