changeset 5714:b6c702202f82

tests: add test for author_email handling of invalid author strings This shows that author_email can return invalid email addresses.
author Mads Kiilerich <madski@unity3d.com>
date Mon, 15 Feb 2016 19:29:26 +0100
parents 491961dfd0c8
children 1fd82c81118d
files kallithea/tests/vcs/test_utils.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/vcs/test_utils.py	Wed Feb 10 18:30:27 2016 +0100
+++ b/kallithea/tests/vcs/test_utils.py	Mon Feb 15 19:29:26 2016 +0100
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 
 import os
 import mock
@@ -204,6 +205,8 @@
                    ('justname', '')),
                   ('Mr Double Name withemail@example.com ',
                    ('Mr Double Name', 'withemail@example.com')),
+                  (u'John Doe <джондо à éẋàṁṗłê.ç°ḿ>',
+                   (u'John Doe <\u0434\u0436\u043e\u043d\u0434\u043e \xe0 \xe9\u1e8b\xe0\u1e41\u1e57\u0142\xea.\xe7\xb0\u1e3f>', '\xd0\xb4\xd0\xb6\xd0\xbe\xd0\xbd\xd0\xb4\xd0\xbe \xc3\xa0 \xc3\xa9\xe1\xba\x8b\xc3\xa0\xe1\xb9\x81\xe1\xb9\x97\xc5\x82\xc3\xaa.\xc3\xa7\xc2\xb0\xe1\xb8\xbf')),
                   ]
 
     def test_author_email(self):