summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-06-06 20:32:33 +0000
committerGerrit Code Review <review@openstack.org>2012-06-06 20:32:33 +0000
commitd8a2e6cd1a72357e8d083b0bef150fa82c0e453c (patch)
tree7f0d9ad306f6c753ecc9c139514bf5c4fd4e53dd /tests/unit
parent9421a82f70d327363585a7e3056c67a54d4150d8 (diff)
parent83044a72815ba2a7cec1e6a343c6eeb091c68a30 (diff)
downloadoslo-d8a2e6cd1a72357e8d083b0bef150fa82c0e453c.tar.gz
oslo-d8a2e6cd1a72357e8d083b0bef150fa82c0e453c.tar.xz
oslo-d8a2e6cd1a72357e8d083b0bef150fa82c0e453c.zip
Merge "Adds support for bol and eol spaces to ini files"
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_iniparser.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/test_iniparser.py b/tests/unit/test_iniparser.py
index 5b3a0de..5d6e79f 100644
--- a/tests/unit/test_iniparser.py
+++ b/tests/unit/test_iniparser.py
@@ -104,6 +104,15 @@ class ParserTestCase(unittest.TestCase):
self.parser.parse(lines)
self.assertTrue(self.parser.comment_called)
+ def test_assignment_space_single_quote(self):
+ lines = ["foo = ' bar '"]
+ self.parser.parse(lines)
+ self.assertEquals(self.parser.values, {'': {'foo': [' bar ']}})
+
+ def test_assignment_space_double_quote(self):
+ lines = ["foo = \" bar \""]
+ self.parser.parse(lines)
+ self.assertEquals(self.parser.values, {'': {'foo': [' bar ']}})
class ExceptionTestCase(unittest.TestCase):
def test_parseerror(self):