Browse Source

extend test_bts848692() to include an address that requires formatting

tags/7.1.3
Sandro Tosi 4 years ago
parent
commit
6605a9263a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      test/test_utils.py

+ 6
- 0
test/test_utils.py View File

@@ -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@nodomain.ext'
addr = utils.get_user_id(mail, name)
self.assertEqual(addr, '=?utf-8?b?xYPDoW3DqSBNw6xkZGzDqE7DoG3DqSDFnMO8xZduw6Jtw6g=?= <nomail@nodomain.ext>')

def test_find_rewritten(self):
unittest.skip("Is utils.find_rewritten actually useful to someone? deprecate it?")



Loading…
Cancel
Save