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!")
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!")
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!")