Passed
Push — master ( c35757...f8c337 )
by Fabien
01:20
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
import six
2
import pytest
3
from opinionated_configparser import OpinionatedConfigParser
4
5
6
TEST_DICT1 = {
7
    "section1": {
8
        "key1": "ééé",
9
    }
10
}
11
12
13
def test_python3():
14
    if six.PY2:
15
        pytest.skip("python3 test only")
16
    x = OpinionatedConfigParser()
17
    x.read_dict(TEST_DICT1)
18
    assert x.get("section1", "key1") == "ééé"
19