Skip to content

Commit bb34306

Browse files
committed
[test_validation.py] Add Section Type Undefined Test to Standalone Section
1 parent 6466e9d commit bb34306

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_validation.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ def test_standalone_section(self):
135135
sec_one = odml.Section("sec1")
136136

137137
for err in validate(sec_one).errors:
138-
assert("error" not in err.rank)
138+
assert not err.is_error
139+
140+
doc = samplefile.parse("""s1[undefined]""")
141+
res = validate(doc)
142+
self.assertError(res, "Section type undefined")
139143

140144
def test_standalone_property(self):
141145
"""

0 commit comments

Comments
 (0)