summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-13 10:54:10 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-13 10:54:10 +0200
commitb49a56399b1086eabf0abb9d86297188db108c19 (patch)
treeb3197aac55bad1e51ce511ba7badd62ae55c5fe9
parent3d972c045bab860b93ee6c28c61dabeafe81d7e9 (diff)
downloadruamel.yaml-b49a56399b1086eabf0abb9d86297188db108c19.tar.gz
issue 102 failing
-rw-r--r--_test/test_issues.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py
index 4ddec2a..fb11322 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -26,6 +26,16 @@ class TestIssues:
assert str(data['comb']) == str(data['def'])
assert str(data['comb']) == "ordereddict([('key', 'value'), ('key1', 'value1')])"
+ def test_issue_102(self):
+ yaml_str = dedent("""
+ var1: #empty
+ var2: something #notempty
+ var3: {} #empty object
+ var4: {a: 1} #filled object
+ var5: [] #empty array
+ """)
+ x = round_trip(s, preserve_quotes=True) # NOQA
+
def test_issue_160(self):
s = dedent("""\
root:
@@ -77,3 +87,5 @@ class TestIssues:
def test_issue_172(self):
x = round_trip_load(TestIssues.json_str2)
x = round_trip_load(TestIssues.json_str)
+
+