Skip to content

Commit

Permalink
adding a test for reading test/example.textvalidation.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Sep 28, 2017
1 parent 18ad361 commit 0df8047
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pynlpl/tests/folia.py
Expand Up @@ -2597,6 +2597,9 @@ def test001_deepvalidation(self):
"""Validation - Deep Validation"""
folia.Document(file=os.path.join(FOLIAPATH,'test/example.deep.xml'), deepvalidation=True, allowadhocsets=True)

def test002_textvalidation(self):
"""Validation - Text Validation"""
folia.Document(file=os.path.join(FOLIAPATH,'test/example.textvalidation.xml'))

with io.open(FOLIAPATH + '/test/example.xml', 'r',encoding='utf-8') as foliaexample_f:
FOLIAEXAMPLE = foliaexample_f.read()
Expand Down

0 comments on commit 0df8047

Please sign in to comment.