Salome HOME
Added test case for Issue #1998
authordbv <dbv@opencascade.com>
Mon, 23 Jan 2017 12:38:58 +0000 (15:38 +0300)
committerdbv <dbv@opencascade.com>
Mon, 23 Jan 2017 12:38:58 +0000 (15:38 +0300)
src/ModelAPI/CMakeLists.txt
src/ModelAPI/Test/Test1998.py [new file with mode: 0644]

index 6fbe8f77e0b606137e6e517bfcee17e2ef94f2d3..0e90444bce704ed2e23aaea427b1a0801c80acdd 100644 (file)
@@ -141,4 +141,5 @@ ADD_UNIT_TESTS(TestConstants.py
                Test1512.py
                TestDoubleArray.py
                Test1757.py
+               Test1998.py
 )
diff --git a/src/ModelAPI/Test/Test1998.py b/src/ModelAPI/Test/Test1998.py
new file mode 100644 (file)
index 0000000..3c67c62
--- /dev/null
@@ -0,0 +1,14 @@
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
+SketchLine_1 = Sketch_1.addLine(-106.3464837049742, -78.0445969125214, -108.0617495711835, 165.5231560891939)
+model.do()
+Edge_1 = model.addEdge(Part_1_doc, [model.selection("EDGE", "Sketch_1/Edge-SketchLine_1")])
+Vertex_1 = model.addVertex(Part_1_doc, [model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_1e"), model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_1s")])
+model.end()
+
+assert(model.checkPythonDump())