summaryrefslogtreecommitdiff
path: root/tests/settings
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2017-08-15 22:49:39 +0200
committerPatrick Totzke <patricktotzke@gmail.com>2017-08-16 09:10:18 +0100
commitc53fc90c1c71f0f9b0938fdcfc95c67c459b1239 (patch)
tree611d1f854667d412ca53fd273e61bebbbc511b8e /tests/settings
parent2cd61c97d1f27ef262db7913822d0aa34cf70f98 (diff)
Add test for get_account_by_address with realname
Diffstat (limited to 'tests/settings')
-rw-r--r--tests/settings/manager_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/settings/manager_test.py b/tests/settings/manager_test.py
index 3201ad41..e0c48444 100644
--- a/tests/settings/manager_test.py
+++ b/tests/settings/manager_test.py
@@ -111,3 +111,8 @@ class TestSettingsManagerGetAccountByAddress(utilities.TestCaseClassCleanup):
with self.assertRaises(NoMatchingAccount):
settings.get_account_by_address('that_guy@example.com',
return_default=True)
+
+ def test_real_name_will_be_stripped_before_matching(self):
+ acc = self.manager.get_account_by_address(
+ 'That Guy <a_dude@example.com>')
+ self.assertEqual(acc.realname, 'A Dude')