diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2017-01-17 10:04:25 +0100 |
---|---|---|
committer | Lucas Hoffmann <l-m-h@web.de> | 2017-01-18 00:27:40 +0100 |
commit | bf3b870652ed35a20589c5302644a17a82f1dd9a (patch) | |
tree | 3812b96cb6dd301c5f6d59c6e54ea6335752a115 /tests/db | |
parent | dc2a0172d9cfc5d31eb2efbd1812d135c9dc579a (diff) |
Port old doctests to unittest: alot.db.envelope
Diffstat (limited to 'tests/db')
-rw-r--r-- | tests/db/envelop_test.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/db/envelop_test.py b/tests/db/envelop_test.py new file mode 100644 index 00000000..1895d827 --- /dev/null +++ b/tests/db/envelop_test.py @@ -0,0 +1,14 @@ +# 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') |