mirror of
https://github.com/cmehay/pyentrypoint
synced 2024-10-30 15:21:11 +00:00
20 lines
299 B
Python
20 lines
299 B
Python
|
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
|