1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Bake in the existing, but less than great hex sorting behavior

This commit is contained in:
Ross McFarland
2017-06-19 22:36:08 -07:00
parent db35ffe72e
commit 4a7ce9e833

View File

@@ -59,3 +59,12 @@ class TestYaml(TestCase):
}, buf)
self.assertEquals("---\n'*.1.1': 42\n'*.2.1': 44\n'*.11.1': 43\n",
buf.getvalue())
# hex sorting isn't ideal, not treated as hex, this make sure we don't
# change the behavior
buf = StringIO()
safe_dump({
'45a03129': 42,
'45a0392a': 43,
}, buf)
self.assertEquals("---\n45a0392a: 43\n45a03129: 42\n", buf.getvalue())