2
0
mirror of https://github.com/cmehay/pyentrypoint synced 2024-10-30 15:21:11 +00:00
pyentrypoint/tests/configparser_test.py

20 lines
299 B
Python
Raw Normal View History

from commons import clean_env
from pyentrypoint.configparser import ConfigParser
def teardown_function(function):
clean_env()
def test_configparser():
config = '''
[ini]
content = ok
'''.strip()
c = ConfigParser()
c.read_string(config)
assert str(c).strip() == config