Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 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 |