diff nagslang/tests/test_yamlish.py @ 130:67f18e72024d

Handle corner cases around quotes in strings
author Stefano Rivera <stefano@rivera.za.net>
date Mon, 02 Sep 2013 17:03:25 +0200
parents 423266f0b9e4
children 0280ee006d95
line wrap: on
line diff
--- a/nagslang/tests/test_yamlish.py	Mon Sep 02 16:57:59 2013 +0200
+++ b/nagslang/tests/test_yamlish.py	Mon Sep 02 17:03:25 2013 +0200
@@ -101,6 +101,9 @@
     def test_numeric(self):
         self.roundtrip({'foo': [1, 2.0, -1, -2.5]})
 
+    def test_inline(self):
+        self.roundtrip([[1, 2, "hi, there' joe", '', "'"], [3, 4]])
+
 
 class TestFromPyYAML(TestRoundTrip):
     def dump_s(self, data):