summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_inkex_inx.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/extensions/tests/test_inkex_inx.py')
-rw-r--r--share/extensions/tests/test_inkex_inx.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/share/extensions/tests/test_inkex_inx.py b/share/extensions/tests/test_inkex_inx.py
new file mode 100644
index 0000000..3cf03c1
--- /dev/null
+++ b/share/extensions/tests/test_inkex_inx.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# coding=utf-8
+"""
+Test elements extra logic from svg xml lxml custom classes.
+"""
+
+import os
+from glob import glob
+
+from inkex.utils import PY3
+from inkex.tester import TestCase
+from inkex.tester.inx import InxMixin
+
+class InxTestCase(InxMixin, TestCase):
+ """Test INX files"""
+ def test_inx_files(self):
+ """Get all inx files and test each of them"""
+ if not PY3:
+ self.skipTest("No INX testing in python2")
+ return
+ for inx_file in glob(os.path.join(self._testdir(), '..', '*.inx')):
+ self.assertInxIsGood(inx_file)