Passed
Push — master ( 4ae1c7...39cacf )
by Fabien
02:03 queued 57s
created

test_utf8.test_python3()   A

Complexity

Conditions 2

Size

Total Lines 6
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 2
nop 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