def test_create(): ini = INI("test.ini") ini.add_section("section0") ini.add_section("section1") ini.write("section0", "integer", 39) ini.write("section1", "float", np.e) ini.write("section0", "string", "hello world, this is an ini file") ini.write("section1", "list", ["Linux", "rocks"]) ini.write("section1", "tuple", ("Linux", "rocks")) ini.write("section0", "none", None) ini.write("section1", "true", True) ini.write("section1", "false", False) ini.write("section0", "ndarray", np.linspace(0, 10, 21))
def test_create(): ini = INI("test.ini") ini.add_section("section0") ini.add_section("section1") ini.write("section0", "integer", 39) ini.write("section1", "float", np.e) ini.write("section0", "string", "hello world, this is an ini file") ini.write("section1", "list", ["Linux", "rocks"]) ini.write("section1", "tuple", ("Linux", "rocks")) ini.write("section0", "none", None) ini.write("section1", "true", True) ini.write("section1", "false", False) ini.write("section0", "ndarray", np.linspace(0, 10, 21))
def test_create(): ini = INI('test.ini') ini.add_section('section0') ini.add_section('section1') ini.write('section0', 'integer', 39) ini.write('section1', 'float', np.e) ini.write('section0', 'string', 'hello world, this is an ini file') ini.write('section1', 'list', ['Linux', 'rocks']) ini.write('section1', 'tuple', ('Linux', 'rocks')) ini.write('section0', 'none', None) ini.write('section1', 'true', True) ini.write('section1', 'false', False) ini.write('section0', 'ndarray', np.linspace(0, 10, 21))