From 362268d9a506c1d87f197bccef6fed0dcb83d629 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 8 Aug 2017 12:56:28 -0700 Subject: Use new Address class This just wries the new Address class into alot for use, and fixes up a few places where such fixups are needed. Fixes #1107 --- tests/settings/manager_test.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/settings') diff --git a/tests/settings/manager_test.py b/tests/settings/manager_test.py index d56c4364..a09dbf15 100644 --- a/tests/settings/manager_test.py +++ b/tests/settings/manager_test.py @@ -123,17 +123,17 @@ class TestSettingsManagerGetAccountByAddress(utilities.TestCaseClassCleanup): cls.manager = SettingsManager(alot_rc=f.name) def test_exists_addr(self): - acc = self.manager.get_account_by_address('that_guy@example.com') + acc = self.manager.get_account_by_address(u'that_guy@example.com') self.assertEqual(acc.realname, 'That Guy') def test_doesnt_exist_return_default(self): - acc = self.manager.get_account_by_address('doesntexist@example.com', + acc = self.manager.get_account_by_address(u'doesntexist@example.com', return_default=True) self.assertEqual(acc.realname, 'That Guy') def test_doesnt_exist_raise(self): with self.assertRaises(NoMatchingAccount): - self.manager.get_account_by_address('doesntexist@example.com') + self.manager.get_account_by_address(u'doesntexist@example.com') def test_doesnt_exist_no_default(self): with tempfile.NamedTemporaryFile() as f: @@ -148,7 +148,6 @@ class TestSettingsManagerGetAccountByAddress(utilities.TestCaseClassCleanup): 'That Guy ') self.assertEqual(acc.realname, 'A Dude') - @unittest.expectedFailure def test_address_case(self): """Some servers do not differentiate addresses by case. -- cgit v1.2.3