Package pytils :: Package test :: Package templatetags :: Module helpers :: Class TemplateTagTestCase
[hide private]

Class TemplateTagTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   TemplateTagTestCase
Known Subclasses:
test_dt.DtDefaultTestCase, test_translit.TranslitDefaultTestCase, test_numeral.NumeralDefaultTestCase

TestCase for testing template tags and filters

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
check_template_tag(self, template_name, template_string, context, result_string)
Method validates output of template tag or filter
source code

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription, tearDown

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

check_template_tag(self, template_name, template_string, context, result_string)

source code 
Method validates output of template tag or filter
Parameters:
  • template_name (str) - name of template
  • template_string (str) - contents of template
  • context (dict) - rendering context
  • result_string (str) - reference output