<s> from django import template <EOL> from django . conf import settings <EOL> from django . test import TestCase <EOL> class TestTemplateTag ( TestCase ) : <EOL> def test_tag_renders_correctly ( self ) : <EOL> render = lambda tpl : template . Template ( <EOL> tpl ) . render ( template . Context ( { '<STR_LIT>' : None } ) ) <EOL> tpl = """<STR_LIT>""" <EOL> rendered = render ( tpl ) <EOL> self . assertTrue ( '<STR_LIT>' in rendered ) <EOL> tpl = """<STR_LIT>""" <EOL> rendered = render ( tpl ) <EOL> self . assertTrue ( '<STR_LIT>' in rendered ) <EOL> self . assertTrue ( '<STR_LIT>' in rendered ) <EOL> class TestAuthenticationBackend ( TestCase ) : <EOL> def test_authentication_backend_should_be_configured_in_settings ( self ) : <EOL> self . assertTrue ( '<STR_LIT>' in settings . AUTHENTICATION_BACKENDS ) </s>
