test/unittest_utils.py
author David Douard <david.douard@logilab.fr>
Fri, 21 Nov 2014 20:07:15 +0100
changeset 1782 69394bafe4bd
parent 1501 a45f5a997ab2
permissions -rw-r--r--
[narval] the lgp_suffix option of lgp.build checker is now used as is it is now the responsibility of the caller to build the desired suffix instead of a hardcoded ~rev<csid>.

#!/usr/bin/python

from logilab.common.testlib import TestCase, unittest_main
from cubicweb import devtools # setup import machinery
from cubes.apycot.entities import text_to_dict

class TextToDictTC(TestCase):
    def test_multiple(self):
        self.assertEqual(text_to_dict('''muloption=1
muloption= 2
single= hop
'''),
                          {'muloption': ['1', '2'],
                           'single': 'hop'})

if __name__ == '__main__':
    unittest_main()