2014-12-03 20:36:17 +00:00
|
|
|
from django.test import SimpleTestCase
|
2014-11-12 01:32:44 +00:00
|
|
|
|
2014-12-07 08:43:10 +00:00
|
|
|
from ..utils import setup
|
2014-11-12 01:32:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
multiline_string = """
|
|
|
|
Hello,
|
|
|
|
boys.
|
|
|
|
How
|
|
|
|
are
|
|
|
|
you
|
|
|
|
gentlemen.
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2014-12-03 20:36:17 +00:00
|
|
|
class MultilineTests(SimpleTestCase):
|
2014-11-12 01:32:44 +00:00
|
|
|
|
|
|
|
@setup({'multiline01': multiline_string})
|
|
|
|
def test_multiline01(self):
|
2014-12-07 08:43:10 +00:00
|
|
|
output = self.engine.render_to_string('multiline01')
|
2014-11-12 01:32:44 +00:00
|
|
|
self.assertEqual(output, multiline_string)
|