class BlockTestCase(unittest.TestCase): """Test case for block template tag """ def setUp(self): self.loader = FSLoader(['tests/templates']) self.base_template = self.loader.get_template('base.html') def testExecuteTemplate(self): '''Test template execution''' result = self.base_template() is_eq = fuzzy_equals(result, BASE_RESULT) assert is_eq, "Error template execution:\n%s" % ( "\n".join((result, "except", BASE_RESULT)))
def setUp(self): self.loader = FSLoader(['tests/templates']) self.base_template = self.loader.get_template('base.html')