We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a491c6 commit fd2dcb7Copy full SHA for fd2dcb7
tests/__init__.py
@@ -3,6 +3,7 @@
3
from tests.test_WrongFields import *
4
from tests.test_MissingFields import *
5
from tests.test_MissingEndOfHeader import *
6
+from tests.test_ValidXDI import *
7
8
if __name__ == "__main__":
9
unittest.main(verbosity=2)
tests/test_ValidXDI.py
@@ -0,0 +1,17 @@
1
+import unittest
2
+from xdi_validator import validate
+
+class TestValidXDI(unittest.TestCase):
+ def setUp(self):
+ with open("tests/valid.xdi", "r") as valid_xdi:
10
+ self.errors, self.data = validate(valid_xdi)
11
12
+ def tearDown(self):
13
+ del self.errors
14
+ del self.data
15
16
+ def test_valid(self):
17
+ self.assertEqual(len(self.errors), 0)
0 commit comments