From eab3d767b65982e1e04c5538c0d2827f26230fca Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 13 Dec 2012 15:07:43 +0100 Subject: Improve the quoting style Refs: #24 --- hyperkitty/tests/test_templatetags.py | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'hyperkitty/tests') diff --git a/hyperkitty/tests/test_templatetags.py b/hyperkitty/tests/test_templatetags.py index 1275b25..eab0187 100644 --- a/hyperkitty/tests/test_templatetags.py +++ b/hyperkitty/tests/test_templatetags.py @@ -36,29 +36,8 @@ This is the response. """ expected = """ On Fri, 09.11.12 11:27, Someone wrote: -%s -> This is the first quoted line -> This is the second quoted line -This is the response. -""" % self.quotemsg - result = snip_quoted(contents, self.quotemsg) - self.assertEqual(result, expected) - - def test_quote_2(self): - """The quote starts with a newline""" - contents = """ -On Fri, 09.11.12 11:27, Someone wrote: - -> This is the first quoted line -> This is the second quoted line -This is the response. -""" - expected = """ -On Fri, 09.11.12 11:27, Someone wrote: -%s -> This is the first quoted line -> This is the second quoted line -This is the response. +
%s
This is the first quoted line + This is the second quoted line
This is the response. """ % self.quotemsg result = snip_quoted(contents, self.quotemsg) self.assertEqual(result, expected) -- cgit