diff options
Diffstat (limited to '_test/test_tag.py')
-rw-r--r-- | _test/test_tag.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/_test/test_tag.py b/_test/test_tag.py index 2117ff4..247014b 100644 --- a/_test/test_tag.py +++ b/_test/test_tag.py @@ -3,7 +3,7 @@ import pytest # NOQA from ruamel import yaml -from roundtrip import round_trip +from roundtrip import round_trip, round_trip_load class XXX(yaml.comments.CommentedMap): @@ -23,7 +23,6 @@ yaml.add_representer(XXX, XXX.yaml_dump, representer=yaml.RoundTripRepresenter) class TestIndentFailures: - def test_tag(self): round_trip("""\ !!python/object:__main__.Developer @@ -104,3 +103,10 @@ class TestRoundTripCustom: Export: Name: !Sub "${AWS::StackName}-Vpc" # second tag """) + + +class TestIssue201: + def test_encoded_unicode_tag(self): + round_trip_load(""" + s: !!python/%75nicode 'abc' + """) |