-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4a3450
commit 46c0d32
Showing
9 changed files
with
188 additions
and
238 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
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
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,28 @@ | ||
from __future__ import print_function | ||
import unittest | ||
|
||
|
||
import os | ||
from libsbgnpy.validation import validator | ||
|
||
dir = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
|
||
class ValidatorTestCase(unittest.TestCase): | ||
|
||
def test_validate_xsd_01(self): | ||
""" Test XSD validation. """ | ||
|
||
f = os.path.join(dir, '../examples/sbgn/adh.sbgn') | ||
is_valid = validator.validate_xsd(f) is None | ||
self.assertTrue(is_valid) | ||
|
||
def test_validate_xsd_02(self): | ||
""" Test XSD validation. """ | ||
|
||
f = os.path.join(dir, '../examples/sbgn/glycolysis.sbgn') | ||
is_valid = validator.validate_xsd(f) is None | ||
self.assertTrue(is_valid) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.