[Reportbug-commits] [reportbug] 01/31: extend test_bts848692() to include an address that requires formatting

Sandro Tosi morph at moszumanska.debian.org
Mon Jan 16 01:36:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit 6605a9263a6ed67dacbd25aaf840848e773ad356
Author: Sandro Tosi <morph at debian.org>
Date:   Wed Jan 4 22:42:06 2017 -0500

    extend test_bts848692() to include an address that requires formatting
---
 test/test_utils.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/test_utils.py b/test/test_utils.py
index ab05664..7bbfb42 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -1,3 +1,4 @@
+# coding=utf-8
 import unittest
 
 from reportbug import utils
@@ -71,6 +72,11 @@ class TestEmail(unittest.TestCase):
         addr = utils.get_user_id(mail, name)
         self.assertEqual(addr, '"%s" <%s>' % (name, mail))
 
+        name = "Ńámé MìddlèNàmé Ŝüŗnâmè"
+        mail = 'nomail at nodomain.ext'
+        addr = utils.get_user_id(mail, name)
+        self.assertEqual(addr, '=?utf-8?b?xYPDoW3DqSBNw6xkZGzDqE7DoG3DqSDFnMO8xZduw6Jtw6g=?= <nomail at nodomain.ext>')
+
     def test_find_rewritten(self):
         unittest.skip("Is utils.find_rewritten actually useful to someone? deprecate it?")
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list