OSDN Git Service

data write directory change. shapely library include.
[openembroidery/EmbroideryOutputExtensionForInkscape.git] / embroider / shapely / tests / test_validation.py
diff --git a/embroider/shapely/tests/test_validation.py b/embroider/shapely/tests/test_validation.py
new file mode 100644 (file)
index 0000000..882bee7
--- /dev/null
@@ -0,0 +1,12 @@
+from . import unittest
+from shapely.geometry import Point
+from shapely.validation import explain_validity
+
+
+class ValidationTestCase(unittest.TestCase):
+    def test_valid(self):
+        self.assertEqual(explain_validity(Point(0, 0)), 'Valid Geometry')
+
+
+def test_suite():
+    return unittest.TestLoader().loadTestsFromTestCase(ValidationTestCase)