blob: 14f5fa1fe5c0ca380fbe1e4e83439e0e553c70ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# encoding=utf-8
from __future__ import absolute_import
import unittest
from alot.db import envelope
class TestEnvelopeMethods(unittest.TestCase):
def test_setitem_stores_text_unchanged(self):
"Just ensure that the value is set and unchanged"
e = envelope.Envelope()
e['Subject'] = u'sm\xf8rebr\xf8d'
self.assertEqual(e['Subject'], u'sm\xf8rebr\xf8d')
|