#NEWLINE# def test_lines_to_ignore( self ) : #NEWLINE# #INDENT# metaxml_section = '\n        <core encoding="utf-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy=""\n        ignoreHeaderLines="0" rowType="http://rs.tdwg.org/dwc/terms/Occurrence">\n            <files>\n                <location>occurrence.txt</location>\n            </files>\n            <id index="0" />\n            <field default="Belgium" term="http://rs.tdwg.org/dwc/terms/country"/>\n        </core>\n        ' #NEWLINE# core_descriptor = DataFileDescriptor . make_from_metafile_section ( ET . fromstring ( metaxml_section ) ) #NEWLINE# self . assertEqual ( core_descriptor . lines_to_ignore , 0 ) #NEWLINE# metaxml_section = '\n        <core encoding="utf-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy=""\n        ignoreHeaderLines="1" rowType="http://rs.tdwg.org/dwc/terms/Occurrence">\n            <files>\n                <location>occurrence.txt</location>\n            </files>\n            <id index="0" />\n            <field default="Belgium" term="http://rs.tdwg.org/dwc/terms/country"/>\n        </core>\n        ' #NEWLINE# core_descriptor = DataFileDescriptor . make_from_metafile_section ( ET . fromstring ( metaxml_section ) ) #NEWLINE# self . assertEqual ( self . lines_to_ignore , 1 ) #NEWLINE# metaxml_section = '\n        <core encoding="utf-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy=""\n        rowType="http://rs.tdwg.org/dwc/terms/Occurrence">\n            <files>\n                <location>occurrence.txt</location>\n            </files>\n            <id index="0" />\n            <field default="Belgium" term="http://rs.tdwg.org/dwc/terms/country"/>\n        </core>\n        ' #NEWLINE# core_descriptor = DataFileDescriptor . make_from_metafile_section ( ET . fromstring ( metaxml_section ) ) #NEWLINE# self . assertEqual ( core_descriptor . lines_to_ignore , 0 )