Total Complexity | 1 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
2 | |||
3 | import six |
||
4 | from opinionated_configparser import OpinionatedConfigParser |
||
5 | |||
6 | |||
7 | if six.PY2: |
||
8 | UNICODE = u"ééé" |
||
9 | else: |
||
10 | UNICODE = "ééé" |
||
11 | |||
12 | TEST_DICT1 = { |
||
13 | "section1": { |
||
14 | "key1": UNICODE |
||
15 | } |
||
16 | } |
||
17 | |||
18 | |||
19 | def test_unicode(): |
||
20 | x = OpinionatedConfigParser() |
||
21 | x.read_dict(TEST_DICT1) |
||
22 | assert x.get("section1", "key1") == UNICODE |
||
23 |