diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-12-13 15:07:43 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-12-13 15:07:43 +0100 |
commit | eab3d767b65982e1e04c5538c0d2827f26230fca (patch) | |
tree | 7e881cf8ec8ba8962dda19e135442d621262c55c /hyperkitty/tests | |
parent | a9d22e8e9cbe51ae353b4e2f68ff635e9cf6d844 (diff) | |
download | hyperkitty-eab3d767b65982e1e04c5538c0d2827f26230fca.tar.gz hyperkitty-eab3d767b65982e1e04c5538c0d2827f26230fca.tar.xz hyperkitty-eab3d767b65982e1e04c5538c0d2827f26230fca.zip |
Improve the quoting style
Refs: #24
Diffstat (limited to 'hyperkitty/tests')
-rw-r--r-- | hyperkitty/tests/test_templatetags.py | 25 |
1 files changed, 2 insertions, 23 deletions
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: -<a href="#" class="quoted-switch">%s</a><span class="quoted-text"> -> This is the first quoted line -> This is the second quoted line</span> -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: -<a href="#" class="quoted-switch">%s</a><span class="quoted-text"> -> This is the first quoted line -> This is the second quoted line</span> -This is the response. + <div class="quoted-switch"><a href="#">%s</a></div><div class="quoted-text"> This is the first quoted line + This is the second quoted line </div>This is the response. """ % self.quotemsg result = snip_quoted(contents, self.quotemsg) self.assertEqual(result, expected) |