summaryrefslogtreecommitdiff
path: root/tests/db/envelope_test.py
blob: 4037daa2c83084f757235c52dc9c533359bc9f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# encoding=utf-8
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')