Mercurial > hg > martINI
diff martini/tests/test_config.txt @ 8:81aed4352851
make martini work with an ordered dictionary
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 24 Nov 2010 11:05:40 -0800 |
parents | 7c8f23eae311 |
children |
line wrap: on
line diff
--- a/martini/tests/test_config.txt Wed Nov 24 10:55:59 2010 -0800 +++ b/martini/tests/test_config.txt Wed Nov 24 11:05:40 2010 -0800 @@ -113,3 +113,8 @@ bAr = flu fOo = blah +Test the ability to keep section order: + >>> munger = ConfigMunger() + >>> munger.read('[foo]\n[bar]\n[fleem]\n[baz]\n[best]') + >>> munger.sections() + ['foo', 'bar', 'fleem', 'baz', 'best']