Mercurial > hgrepos > Python > libs > ConfigMix
diff tests/test.py @ 109:057d87d030f1
Test replacing lists by strings and replacing strings by lists
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sat, 24 Mar 2018 16:04:52 +0100 |
| parents | 1c2f8a96dec2 |
| children | c50ad93eb5dc |
line wrap: on
line diff
--- a/tests/test.py Sat Mar 24 15:35:10 2018 +0100 +++ b/tests/test.py Sat Mar 24 16:04:52 2018 +0100 @@ -121,6 +121,12 @@ u("postgresql+psycopg2://the_database_user:the-database-password@anotherhost:5432/my_database_catalog"), url) + self.assertEqual(u("not a list any more"), + cfg.getvar_s("test.List")) + + self.assertEqual(list(range(0, 3)), + cfg.getvar_s("test.Str")) + def test02_load_with_ini(self): cfg = configmix.load( os.path.join(TESTDATADIR, "conf20.yml"),
