diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-09-08 08:58:46 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-09-08 08:58:46 +0200 |
commit | f2e5ad1e946a5401753a4058269f933c6d94fc62 (patch) | |
tree | 52a913dff719ded00fd56da54eb531cfd9885e5b | |
parent | 7897f501a20b27783c9388d6a95eeada78b6bb26 (diff) | |
download | ruamel.yaml-f2e5ad1e946a5401753a4058269f933c6d94fc62.tar.gz |
adding test re #150, which passes but might fail when trying to implement re #233
-rw-r--r-- | _test/test_issues.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py index f4740cc..d37b297 100644 --- a/_test/test_issues.py +++ b/_test/test_issues.py @@ -93,6 +93,23 @@ class TestIssues: """) x = round_trip(yaml_str, preserve_quotes=True) # NOQA + def test_issue_150(self): + from ruamel.yaml import YAML + + inp = """\ + base: &base_key + first: 123 + second: 234 + + child: + <<: *base_key + third: 345 + """ + yaml = YAML() + data = yaml.load(inp) + child = data['child'] + assert 'second' in {**child} + def test_issue_160(self): s = dedent("""\ root: |