We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaac777 commit 13a51c8Copy full SHA for 13a51c8
test/test_validation.py
@@ -129,6 +129,16 @@ def test_section_unique_ids(self):
129
res = validate(doc)
130
self.assertError(res, "Duplicate id in Section")
131
132
+ def test_section_name_readable(self):
133
+ """
134
+ Test if section name is not uuid and thus more readable.
135
136
+ doc = odml.Document()
137
+ sec = odml.Section("sec", parent=doc)
138
+ sec.name = sec.id
139
+ res = validate(doc)
140
+ self.assertError(res, "Name should be readable")
141
+
142
def test_standalone_section(self):
143
"""
144
Test if standalone section does not return errors if required attributes are correct.
0 commit comments