<s> """<STR_LIT>""" <EOL> from os . path import dirname , join <EOL> import unittest <EOL> import doctest <EOL> from solace . tests import SolaceTestCase <EOL> from solace import templating , models , settings <EOL> class TemplatingTestCase ( SolaceTestCase ) : <EOL> def test_simple_render ( self ) : <EOL> """<STR_LIT>""" <EOL> me = models . User ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> rv = templating . render_template ( '<STR_LIT>' , user = me , <EOL> confirmation_url = '<STR_LIT>' ) <EOL> self . assert_ ( '<STR_LIT>' in rv ) <EOL> self . assert_ ( '<STR_LIT>' in rv ) <EOL> self . assert_ ( '<STR_LIT>' in rv ) <EOL> def test_theme_switches ( self ) : <EOL> """<STR_LIT>""" <EOL> settings . THEME_PATH . append ( dirname ( __file__ ) ) <EOL> settings . THEME = '<STR_LIT>' <EOL> templating . refresh_theme ( ) <EOL> resp = self . client . get ( '<STR_LIT>' ) <EOL> self . assert_ ( '<STR_LIT>' in resp . data ) <EOL> self . assert_ ( '<STR_LIT>' in resp . data ) <EOL> def suite ( ) : <EOL> suite = unittest . TestSuite ( ) <EOL> suite . addTest ( unittest . makeSuite ( TemplatingTestCase ) ) <EOL> suite . addTest ( doctest . DocTestSuite ( templating ) ) <EOL> return suite <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( defaultTest = '<STR_LIT>' ) </s>
