Browse Source

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

pull/70/head
Ross McFarland 9 years ago
parent
commit
4a7ce9e833
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      tests/test_octodns_yaml.py

+ 9
- 0
tests/test_octodns_yaml.py View File

@ -59,3 +59,12 @@ class TestYaml(TestCase):
}, buf) }, buf)
self.assertEquals("---\n'*.1.1': 42\n'*.2.1': 44\n'*.11.1': 43\n", self.assertEquals("---\n'*.1.1': 42\n'*.2.1': 44\n'*.11.1': 43\n",
buf.getvalue()) 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())

Loading…
Cancel
Save