Passed
Push — master ( c35757...f8c337 )
by Fabien
01:20
created

test_utf8   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 13
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_python3() 0 6 2
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