From 1c026e33f66be248ae380d7f7501e0216d5fb9d3 Mon Sep 17 00:00:00 2001 From: fuzzyman Date: Sat, 27 Feb 2010 18:06:01 +0000 Subject: New tests for bugs in 4.7.1 --- functionaltests/test_configobj.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'functionaltests') diff --git a/functionaltests/test_configobj.py b/functionaltests/test_configobj.py index 9a6782c..73ecf25 100644 --- a/functionaltests/test_configobj.py +++ b/functionaltests/test_configobj.py @@ -39,4 +39,18 @@ class TestConfigObj(unittest.TestCase): # unpack the only member of log warning, = log - self.assertEqual(warning.category, DeprecationWarning) \ No newline at end of file + self.assertEqual(warning.category, DeprecationWarning) + + def test_list_members(self): + c = ConfigObj() + c['a'] = [] + c['a'].append('foo') + self.assertEqual(c['a'], ['foo']) + + def test_list_interpolation_with_pop(self): + c = ConfigObj() + c['a'] = [] + c['a'].append('%(b)s') + c['b'] = 'bar' + self.assertEqual(c.pop('a'), ['bar']) + -- cgit v1.2.1