|
|
@ -74,9 +74,6 @@ class TestBackslashEscape(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
|
|
def setUp(self):
|
|
|
|
self.env = jinja2.Environment()
|
|
|
|
self.env = jinja2.Environment()
|
|
|
|
|
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_backslash_escaping(self):
|
|
|
|
def test_backslash_escaping(self):
|
|
|
|
|
|
|
|
|
|
|
|
for test in self.test_data:
|
|
|
|
for test in self.test_data:
|
|
|
@ -89,12 +86,6 @@ class TestBackslashEscape(unittest.TestCase):
|
|
|
|
|
|
|
|
|
|
|
|
class TestCountNewlines(unittest.TestCase):
|
|
|
|
class TestCountNewlines(unittest.TestCase):
|
|
|
|
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_zero_length_string(self):
|
|
|
|
def test_zero_length_string(self):
|
|
|
|
self.assertEquals(_count_newlines_from_end(u''), 0)
|
|
|
|
self.assertEquals(_count_newlines_from_end(u''), 0)
|
|
|
|
|
|
|
|
|
|
|
|