diff options
Diffstat (limited to '_test/test_issues.py')
-rw-r--r-- | _test/test_issues.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py index 0e01875..559dcba 100644 --- a/_test/test_issues.py +++ b/_test/test_issues.py @@ -12,7 +12,9 @@ from roundtrip import round_trip, round_trip_load, round_trip_dump, dedent # NO class TestIssue61: def test_issue_61(self): import ruamel.yaml - s = dedent(""" + + s = dedent( + """ def1: &ANCHOR1 key1: value1 def: &ANCHOR @@ -20,7 +22,8 @@ class TestIssue61: key: value comb: <<: *ANCHOR - """) + """ + ) data = ruamel.yaml.round_trip_load(s) assert str(data['comb']) == str(data['def']) assert str(data['comb']) == "ordereddict([('key', 'value'), ('key1', 'value1')])" |