Mercurial > hg > martINI
comparison martini/tests/test_config.txt @ 7:7c8f23eae311
discriminate on case
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 24 Nov 2010 10:55:59 -0800 |
parents | 09bed87f7fa4 |
children | 81aed4352851 |
comparison
equal
deleted
inserted
replaced
6:09bed87f7fa4 | 7:7c8f23eae311 |
---|---|
100 | 100 |
101 >>> munger = ConfigMunger() | 101 >>> munger = ConfigMunger() |
102 >>> munger.read("[Jeff Hammel]\naddress = 639 W. 173 St.\n Apt. 11D\n New York, NY 10032") | 102 >>> munger.read("[Jeff Hammel]\naddress = 639 W. 173 St.\n Apt. 11D\n New York, NY 10032") |
103 >>> munger.get('Jeff Hammel', 'address') | 103 >>> munger.get('Jeff Hammel', 'address') |
104 '639 W. 173 St.\nApt. 11D\nNew York, NY 10032' | 104 '639 W. 173 St.\nApt. 11D\nNew York, NY 10032' |
105 | |
106 Test the ability to keep string case: | |
107 | |
108 >>> munger = ConfigMunger() | |
109 >>> munger.read("[Foo]\nBar=fleem\nfOo=blah\nbAr=flu") | |
110 >>> munger.write() | |
111 [Foo] | |
112 Bar = fleem | |
113 bAr = flu | |
114 fOo = blah | |
115 |