-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re: SEL-Columbia#76 Certain column names can have lower-cased equivalent aliases
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from pyxform_test_case import PyxformTestCase | ||
|
||
|
||
class XlsFormHeadersTest(PyxformTestCase): | ||
def test_label_caps_alternatives(self): | ||
''' | ||
re: https://github.com/SEL-Columbia/pyxform/issues/76 | ||
Capitalization of 'label' column can lead to confusing errors. | ||
''' | ||
s1 = self.md_to_pyxform_survey(""" | ||
| survey | | | | | ||
| | type | name | label | | ||
| | note | q | Q | | ||
""") | ||
s2 = self.md_to_pyxform_survey(""" | ||
| survey | | | | | ||
| | type | name | Label | # <-- note: capital L | ||
| | note | q | Q | | ||
""") | ||
self.assertEqual(s1.to_xml(), s2.to_xml()) |