You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
299 B
Python
20 lines
299 B
Python
4 years ago
|
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
|