diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2017-06-22 17:49:56 +0200 |
---|---|---|
committer | Lucas Hoffmann <l-m-h@web.de> | 2017-06-22 23:53:14 +0200 |
commit | f3337159112a8342403e54e9dff241f5f3a6af27 (patch) | |
tree | 97f0da98c7f24d7eba63d22aca22cf32ec1d75a9 /tests | |
parent | fb9659ee1869fb6b930ae9c15ad7ad24723596c3 (diff) |
determine_sender: test if account matches address
This test case exemplifies a bug in determine_sender. The address is
matched correctly but the wrong account is associated with it.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/commands/thread_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/commands/thread_test.py b/tests/commands/thread_test.py index 4496fb03..fbd42d67 100644 --- a/tests/commands/thread_test.py +++ b/tests/commands/thread_test.py @@ -155,3 +155,11 @@ class TestDetermineSender(unittest.TestCase): account2 = _AccountTestClass(address='bar@example.com') expected = ('foo@example.com', account1) self._test(accounts=[account1, account2], expected=expected) + + @unittest.expectedFailure + def test_matching_address_and_account_are_returned(self): + account1 = _AccountTestClass(address='foo@example.com') + account2 = _AccountTestClass(address='to@example.com') + account3 = _AccountTestClass(address='bar@example.com') + expected = ('to@example.com', account2) + self._test(accounts=[account1, account2, account3], expected=expected) |