예제 #1
0
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)))
예제 #2
0
 def setUp(self):
     self.loader = FSLoader(['tests/templates'])
     self.base_template = self.loader.get_template('base.html')