diff martini/tests/test_config.txt @ 6:09bed87f7fa4

fix some errors
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 24 Nov 2010 10:49:37 -0800
parents 3c3522ce6e3a
children 7c8f23eae311
line wrap: on
line diff
--- a/martini/tests/test_config.txt	Tue Mar 02 20:32:03 2010 -0500
+++ b/martini/tests/test_config.txt	Wed Nov 24 10:49:37 2010 -0800
@@ -90,13 +90,15 @@
 
 Move a secton around:
      
-     >>> munger.rename_section('foo', 'oof')
+     >>> munger.move_section('foo', 'oof')
      >>> sorted(munger.sections())
      ['DEFAULTS', 'oof']
      >>> munger['oof']
      {'baz': 'fleem'}
 
-Test the ability to parse multi-line .ini files [TODO]:
+Test the ability to parse multi-line .ini files:
 
      >>> munger = ConfigMunger()
-     >>> # munger.read("[Jeff Hammel]\naddress = 639 W. 173 St.\nApt. 11D\nNew York, NY  10032")
+     >>> munger.read("[Jeff Hammel]\naddress = 639 W. 173 St.\n Apt. 11D\n New York, NY  10032")
+     >>> munger.get('Jeff Hammel', 'address')
+     '639 W. 173 St.\nApt. 11D\nNew York, NY  10032'