summaryrefslogtreecommitdiff
path: root/tests/settings
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-08-08 15:27:17 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-08-28 16:17:49 -0700
commit1e54349b03c084be43c1166d3443b89f60715d28 (patch)
tree337714bdcece21e0b2226e2b0fbe5b92317b2671 /tests/settings
parent9bd32e5b0b253aa80c44e7d54f15e66ceb84a9e8 (diff)
tests/settings/manager: Add test for case insensitivity
This currently fails as there is not way to toggle case sensitivity
Diffstat (limited to 'tests/settings')
-rw-r--r--tests/settings/manager_test.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/settings/manager_test.py b/tests/settings/manager_test.py
index 0ce29259..d56c4364 100644
--- a/tests/settings/manager_test.py
+++ b/tests/settings/manager_test.py
@@ -147,3 +147,15 @@ class TestSettingsManagerGetAccountByAddress(utilities.TestCaseClassCleanup):
acc = self.manager.get_account_by_address(
'That Guy <a_dude@example.com>')
self.assertEqual(acc.realname, 'A Dude')
+
+ @unittest.expectedFailure
+ def test_address_case(self):
+ """Some servers do not differentiate addresses by case.
+
+ So, for example, "foo@example.com" and "Foo@example.com" would be
+ considered the same. Among servers that do this gmail, yahoo, fastmail,
+ anything running Exchange (i.e., most large corporations), and others.
+ """
+ acc1 = self.manager.get_account_by_address('That_guy@example.com')
+ acc2 = self.manager.get_account_by_address('that_guy@example.com')
+ self.assertIs(acc1, acc2)