summaryrefslogtreecommitdiff
path: root/tests/db/test_message.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/db/test_message.py')
-rw-r--r--tests/db/test_message.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/db/test_message.py b/tests/db/test_message.py
index 2f7a6b8c..adc099f6 100644
--- a/tests/db/test_message.py
+++ b/tests/db/test_message.py
@@ -91,8 +91,8 @@ class TestMessage(unittest.TestCase):
is present.
"""
acc = mock.Mock()
- acc.address = account.Address(u'user', u'example.com')
- acc.realname = u'User Name'
+ acc.address = account.Address('user', 'example.com')
+ acc.realname = 'User Name'
with mock.patch('alot.db.message.settings.get_accounts',
mock.Mock(return_value=[acc])):
msg = message.Message(
@@ -104,8 +104,8 @@ class TestMessage(unittest.TestCase):
the message is not a draft.
"""
acc = mock.Mock()
- acc.address = account.Address(u'user', u'example.com')
- acc.realname = u'User Name'
+ acc.address = account.Address('user', 'example.com')
+ acc.realname = 'User Name'
with mock.patch('alot.db.message.settings.get_accounts',
mock.Mock(return_value=[acc])):
msg = message.Message(mock.Mock(), MockNotmuchMessage())