diff nagslang/tests/test_yamlish.py @ 136:0280ee006d95

Support integer dict keys
author Stefano Rivera <stefano@rivera.za.net>
date Mon, 02 Sep 2013 17:58:35 +0200
parents 67f18e72024d
children c5ff16c66100
line wrap: on
line diff
--- a/nagslang/tests/test_yamlish.py	Mon Sep 02 18:19:57 2013 +0200
+++ b/nagslang/tests/test_yamlish.py	Mon Sep 02 17:58:35 2013 +0200
@@ -91,6 +91,13 @@
             ],
         })
 
+    def test_int_dict(self):
+        self.roundtrip({
+            1: 'foo',
+            2: 'bar',
+            3: ['baz', 'qux'],
+        })
+
     def test_quoted(self):
         # a literal true is True, but 'true' is a string
         self.roundtrip({'foo': 'true'})