Example #1
0
 def testPlain(self):
     """Testing condense tag"""
     node = djblets_email.condense(self.parser,
                                   Token(TOKEN_TEXT, 'condense'))
     self.assertEqual(node.render({}), "foo\nbar\n\n\nfoobar!")
Example #2
0
 def test_plain(self):
     """Testing condense tag"""
     node = djblets_email.condense(self.parser,
                                   Token(TOKEN_TEXT, 'condense'))
     self.assertEqual(node.render({}), "foo\nbar\n\n\nfoobar!")
Example #3
0
 def test_with_max_indents(self):
     """Testing condense tag with custom max_indents"""
     node = djblets_email.condense(self.parser,
                                   Token(TOKEN_TEXT, 'condense 1'))
     self.assertEqual(node.render({}), "foo\nbar\nfoobar!")
Example #4
0
 def test_with_max_indents(self):
     """Testing condense tag with custom max_indents"""
     node = djblets_email.condense(self.parser,
                                   Token(TOKEN_TEXT, 'condense 1'))
     self.assertEqual(node.render({}), "foo\nbar\nfoobar!")