summaryrefslogtreecommitdiff
path: root/tests/settings/checks_test.py
blob: 917e24385abf5e7ed107fc68f2936e7a41f3193d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# encoding=utf-8

import unittest

from alot.settings import checks


class TestForceList(unittest.TestCase):

    def test_strings_are_converted_to_single_item_lists(self):
        forced = checks.force_list('hello')
        self.assertEqual(forced, ['hello'])

    def test_empty_strings_are_converted_to_empty_lists(self):
        forced = checks.force_list('')
        self.assertEqual(forced, [])