mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Add test for custom YAML loader with unicode literal strings
This commit is contained in:
parent
a0118bcece
commit
9d8486a894
@ -100,3 +100,15 @@ class YamlLoaderTestCase(TestCase):
|
||||
<<: *p1
|
||||
v2: beta
|
||||
v2: betabeta'''))
|
||||
|
||||
def test_yaml_with_unicode_literals(self):
|
||||
'''
|
||||
Test proper loading of unicode literals
|
||||
'''
|
||||
self.assertEqual(
|
||||
self._render_yaml(textwrap.dedent('''\
|
||||
foo:
|
||||
a: Д
|
||||
b: {'a': u'\\u0414'}''')),
|
||||
{'foo': {'a': u'\u0414', 'b': {'a': u'\u0414'}}}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user