diff options
author | fuzzyman <devnull@localhost> | 2009-10-25 18:50:02 +0000 |
---|---|---|
committer | fuzzyman <devnull@localhost> | 2009-10-25 18:50:02 +0000 |
commit | a25ed92de120446e3b58585ab1b362990851e81f (patch) | |
tree | 7a4a766d102cf3bc61b19acdd7d025cc853ce67b /test_configobj.py | |
parent | cead96333b2a8420906fc832be1f9805770e6c14 (diff) | |
download | configobj-a25ed92de120446e3b58585ab1b362990851e81f.tar.gz |
String interpolation now works in list values.
Diffstat (limited to 'test_configobj.py')
-rw-r--r-- | test_configobj.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test_configobj.py b/test_configobj.py index f73517a..30d99b6 100644 --- a/test_configobj.py +++ b/test_configobj.py @@ -2011,11 +2011,17 @@ def _test_as_list(): >>> a.as_list('a') [1] """ - -# drop support for Python 2.2 ? - - +def _test_list_interpolation(): + """ + >>> c = ConfigObj() + >>> c['x'] = 'foo' + >>> c['list'] = ['%(x)s', 3] + >>> c['list'] + ['foo', 3] + """ + + # TODO: Test BOM handling # TODO: Test error code for badly built multiline values # TODO: Test handling of StringIO |