summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2019-05-27 10:29:49 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2019-05-27 10:29:49 +0100
commit72306c65a9ab423c089c2a77569b6f549a1ab58c (patch)
treed82636119118fb68a7443705451b49349ec347d6 /tests
parent3c84b49725fd430ec71c5dc1b8ae0fb069fe6e53 (diff)
tests: add case for exchange formatted realnames
Diffstat (limited to 'tests')
-rw-r--r--tests/db/test_utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/db/test_utils.py b/tests/db/test_utils.py
index f6249542..1e230aef 100644
--- a/tests/db/test_utils.py
+++ b/tests/db/test_utils.py
@@ -272,6 +272,12 @@ class TestDecodeHeader(unittest.TestCase):
expected = u'first\nsecond third fourth fifth'
actual = utils.decode_header(text, normalize=True)
self.assertEqual(actual, expected)
+
+ def test_exchange_quotes_remain(self):
+ # issue #1347
+ expected = u'"Mouse, Michaƫl" <x@y.z>'
+ text = self._quote(expected, 'utf-8')
+ self._test(text, expected)
class TestAddSignatureHeaders(unittest.TestCase):